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
![Tom Wellige](http://content.invisioncic.com/r255538/monthly_2020_04/facebook2.thumb.png.7201b63ad83065920f23d2478c4a838f.png)
By Tom Wellige