php - phpagi freezing/halting/blocking on any command -



php - phpagi freezing/halting/blocking on any command -

i'm using phpagi , i'm having bit of trouble. i've simplified problem few lines of code. first, context:

[script] exten=>s,1,agi(asterisk_callback.php)

and actual code (using laravel 4):

log::info('[callback script] creating phpagi..'); $agi = new agi(); log::info('[callback script] trying noop..'); $agi->noop('can see me?'); log::info('[callback script] success!');

when drop .call file, receive call. 1 time answer, log receives first 2 messages. hangs on $agi->noop(). phone phone call remain live, , 1 time hang script go on , log "success!"

asterisk has next log:

connected asterisk 11.7.0~dfsg-1ubuntu1 running on playground (pid = 26298) > channel sip/vitel-outbound-00000000 answered -- executing [s@callback_script:1] agi("sip/vitel-outbound-00000000", "asterisk_callback.php,53,sip/vitel-outbound-00000000") in new stack -- launched agi script /usr/share/asterisk/agi-bin/asterisk_callback.php > 0x7f84dc0181d0 -- probation passed - setting rtp source address 64.2.142.190:15106

... freezes here until hang call. get:

-- <sip/vitel-outbound-00000000>agi script asterisk_callback.php completed, returning 4 == spawn extension (callback_script, s, 1) exited non-zero on 'sip/vitel-outbound-00000000' [jun 20 12:33:44] notice[26511]: pbx_spool.c:402 attempt_thread: phone call completed sip/2144769335@vitel-outbound/n

am doing wrong phpagi?

found issue. i'm having agi() phone call script, runs laravel artisan command. think problem standard input/output aren't beingness routed exec() command in script. i'll inquire question different way in different post.

php asterisk agi

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -