How to capture call disconnect for asterisk using PHPAGI ?
For e.g. if user disconnects the call which event is invoked ? How to capture it ?
How to capture call disconnect for asterisk using PHPAGI ? For e.g. if user
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can check the Return Results of your PHP-AGI API calls,
for example stream_file returns
-1on hangup.You could also invoke another AGI Script on the
hExtension in the Dialplan.If you have to clean up something, you could also register a Shutdown function.
Another Approach is to register a Signal Handler which edmund long described in his blog. PCNTL is a PHP extension, to enable PCNTL recompile PHP with
--enable-pcntl.