VBScript → Lua
Returns True if the originator of the current call has disconnected it.
If PBXCall.IsOriginatorDisconnected Then ' do something End If
This property 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.