Lua → VBScript SwxWare v13.10
This functions disconnects the current call.
local nReturn = PBXCall.Disconnect(nCause)
This function returns a PBXResult value of PBXSuccess or PBXFailure.
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 after the call was connected.
Parameter
nCause
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
To prevent any misunderstanding on the callder side (due to not predictable behaviour of the callers' provider) it is recommended to use PBXCallTermNormalCallClearing or PBXCallTermDestinationBusy only.
By Tom Wellige