global.onHangup
Triggered when the call is finished. Helps to get functions implemented and initiated when a call ends.
With the use of this event, you can request getScriptVariable(‘talkTime’): this provides the exact amount of time (in seconds) the agent and the customer spent while in call.
- If it is requested while the call is still taking place, then the result is the time that has passed since the call started.
- If it is requested when the call has not been established, the result is 0.
Parameters
none
Returns
none
Example
$().onHangup = function(hangupCause) {
dump(hangupCause);
...
}
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.