VBScript → Lua
This functions disconnects the current call.
PBXCall.Disconnect ([cause])
This function returns an integer value of PBXSuccess (0) on success. See list of defined return values.
This function can be called before the call is connected to a user (by using e.g. the Connect To block in the GSE) or even after the call was connected.
Parameter
cause
Optional. Default: PBXCallTermNormalCallClearing
This parameter takes the cause that is signalled to the other side (pstn/sip provider) and can be any of the following values:
PBXCallTermNormalCallClearing
PBXCallTermDestinationBusy
PBXCallTermReject
PBXCallTermCancelled
PBXCallTermTransferred
PBXCallTermJoinedConference
PBXCallTermNoAnswer
PBXCallTermToLate
PBXCallTermDirectCallImpossible
PBXCallTermWrongNumber
PBXCallTermIgnoreCall
By Tom Wellige