Jump to content
  • PBXCall.Disconnect()

    PBXCall.Disconnect()

    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.

     

     




×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and have taken note of our Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.