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 ?
相关问题
- Disconnecting app in quickbooks v3 api
- How to allow inbound calls in pjsip and Asterisk 1
- how to ice restart?
- Unit/integration testing Asterisk configuration
- How to Set Timeout for FastAGI in Asterisk
相关文章
- Replace characters in Asterisk Dialplan
- What's your Interactive Voice Response Platfor
- Asterisk,SIP Retransmission timeout
- Disconnect from ssh2_connect()
- Asterisk Answering machine detection (AMD) always
- Asterisk - Pre-emption calls
- How to configure kamailio server with load balanci
- What does the asterisk do in *a, b, c = line.split
You can check the Return Results of your PHP-AGI API calls, for example stream_file returns
-1
on hangup.You could also invoke another AGI Script on the
h
Extension 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
.