Displaying 2 results from an estimated 2 matches for "callhandler".
Did you mean:
call_handler
2005 Jul 26
0
AGI why oh why?
I have been learning AGI, and have got to grips with most of it, one thing
just confuses me.
I have written a PHP class that does input and outs stuff to the AGI. It all
seems to work. However on a stream file command. It's a bit different.
If I have a php file that just plays a file and hangs up, the dial and hang
up are in the dialplan, so the php proggie looks alittle like this.
2007 Apr 12
0
RAGI channel_status() never returnes
...[2007-04-13 08:42:40] INFO Dialup
[2007-04-13 08:42:40] INFO Dialing
[2007-04-13 08:42:40] INFO Waiting for call to be done
[2007-04-13 08:42:40] INFO -1
[2007-04-13 08:42:48] INFO Hangup
code:
require 'ragi/call_handler'
require "thread"
class CallHistoryHandler < RAGI::CallHandler
def dialup
logger = WEBrick::Log::new
logger.info("Dialup")
hangup = false;
Thread.start {
# Keep running until the call is hung up
while hangup == false
# The 1st call returns -1
# The 2nd call never returns
status = channel_status...