jonas.kellens at telen... Guest
|
Posted: Thu Mar 20, 2014 9:28 am Post subject: [asterisk-users] php script in h context makes channel hang |
|
|
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. |
|