search for: hangup_trap

Displaying 1 result from an estimated 1 matches for "hangup_trap".

2005 Jul 20
3
Working with an ongoing call
...supplies total remaining credit unless (Reserve credit for N seconds) exit with message; INITIATE CALL; If answered { while(1) { Wait for N-x seconds; Reserve credit for N seconds; if (close to credit limit) PLAY WARNING BEEP; else if (out of credit) EXIT WITH MESSAGE; } } hangup_trap: Commit credit based on actual call length; EOF I realize that this probably needs to be done as a combination of dialplan logic and AGIs, but my main concern is the ability to 1) send sound to the caller of an ongoing call 2) retain control so the call can be terminated based on a timer (or w...