Displaying 2 results from an estimated 2 matches for "callhandl".
Did you mean:
callhandle
2005 Jul 26
0
AGI why oh why?
...ittle like this.
$ast->out("STREAM FILE home \"\"");
$ast->in();
If I run this, with AGI DEBUGGING on I get something like this.
AGI Tx >> 200 result=1 // last line of the variables passed in.
AGI Rx << STREAM FILE home ""
-- AGI Script callhandle.php completed, returning 0
-- Executing Hangup("SIP/blah", "") in new stack
The program does not play the file, it simple hangs up.
If I place a delay in PHP program
$ast->out("STREAM FILE home \"\"");
sleep(20);
$ast->in();
I get..
AGI Tx >...
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_stat...