Jump to content
  • PBXCall.WaitForDisconnect

    PBXCall.WaitForDisconnect

    VBScript   → Lua

     

    This function returns if the current call is disconnected or a given timeout is reached.

     

    PBXCall.WaitForDisconnect ([iTimeout])

     

     

    This function returns an integer value of  PBXSuccess (0) on success. See list of defined return values.

     

    Parameter

     

    iTimeout

     

    Optional. Default: 0


    Time in seconds to wait for the call to disconnect. A zero timeout waits infinitely, i.e. until the call is disconnected. If the timeout is reached the function returns with the return value PBXTimeout.

     

    This function can be used after a call has been connected to a user to keep the script running until the call is finally disconnected. This might be useful if some sort of work has to be done at that point (releasing used memory, writing call details, a.s.o.).

     

    Please refer to PBXCall.ConnectedName or PBXCall.ConnectedNumber for another usage example of this function.

     

     


    Tom Wellige
     Share


     Share




×
×
  • 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.