[asterisk-users] php script in h context makes channel hang : solution ?

Jonas Kellens jonas.kellens at telenet.be
Thu Mar 20 09:26:51 CDT 2014


Hello,

I execute the following php script when a call ends and the h-context is 
executed :

/exten => h,n,System(/usr/bin/php 
/var/log/asterisk/loggingAST/loggingAST.php 
/var/log/asterisk/loggingAST/${CHANNEL:4}.csv)/

The script loggingAST.php writes some information in a MySQL database on 
a remote webserver.

I have noticed that when the webserver is unreachable, this channel 
"hangs" and Asterisk can not clear the channel and rtp ports.


Is there a way to have the channel cleared, even if it takes some time 
to execute the php script ??


Kind regards,

Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140320/6f93a46d/attachment.html>


More information about the asterisk-users mailing list