Extension Class Methods
The Extension class inherits the onError method from the Address class.
The following are the Extension class methods.
Syntax
cancelDnd(reason)
Description
Cancel the DND (do not disturb).
Parameters
Field or Control |
Definition |
---|---|
reason |
The reason for DND cancellation. |
Returns
Request number.
Syntax
cancelForwardSet(reason)
Description
Cancel the forward.
Parameters
Field or Control |
Definition |
---|---|
reason |
The reason for cancelling the forward. |
Returns
Request number.
Syntax
forwardSet(number, mode, reason)
Description
Forward the call to another number/extension.
Parameters
Field or Control |
Definition |
---|---|
mode |
The forward mode. |
number |
The number to which all calls will be forwarded. |
reason |
The reason to forward. |
Returns
Request number.
Syntax
getDialingLine()
Description
Get the dialing line object.
Parameters
None
Returns
Returns a line object. Null if there is no dialing line.
Syntax
getFreeLine()
Description
Get the free line object. A line is free if there is no activity on this line.
Parameters
None
Returns
Returns a line object. It returns null if there is no free line.
Syntax
getLineByConnectionId(connectionID)
Description
Get the line object with the call.
Parameters
Field or Control |
Definition |
---|---|
connectionId |
The connection ID associated with a call. |
Returns
Returns a Line object. Returns null if there is no line with that call.
Syntax
getOffHookLine()
Description
Get the offhook line object.
Parameters
None.
Returns
Returns a Line object. Returns null if there is no offhook line.
Syntax
setDnd(reason)
Description
Fires when setting DND (do not disturb).
Parameters
Field or Control |
Definition |
---|---|
reason |
The reason to set the DND. |
Returns
Request number.