Hangup not receiving in time asterisk ami

2019-08-26 11:02发布

问题:

I have a simple problem in Asterisk AMI. SIP/2020 is registered in sip and SIP/{2022-27} registered in a different context. I called from 2020 and put on the queue containing SIP/{2022-27}. after attending one of them(say 2022) its forwarded using Redirect action in AMI then a Dial application is made to the redirected context. But after forwarding the Extension disconnected but the same event is not received in ami. After completing the second answering (say 2023). All the 3 Hangup got at last of the call from 2021 including the Hangup of 2022. There is not problem in forwarding further(ie; in every redirection hangup to forwarding extension got ). Help me solving this issue??