Lua → VBScript SwxWare v13.10
This function returns true if the originator of the current call has disconnected it.
if PBXCall.IsOriginatorDisconnected() then -- do something end
This function returns a boolean value.
An example would be to put a call on hold with PBXCall.Hold() and then to wait for an avaible agent within a loop. Don't miss to use the PBXScript.Sleep() function when looping while waiting for something to prevent 100% cpu load. While being in such a loop it is also recommended to check regularly with PBXCall.IsOriginatorDisconnected if the caller has disconnected the call in the meantime.
By Tom Wellige