JIMMY GATHAGE
2012-May-02 21:41 UTC
[asterisk-users] Asterisk AMI SIP channel detect phone ringing
Hey guys, I am using a SIP trunk to make outgoing calls. Outgoing calls are going through okay. I am using the AMI to Originate a call. The channel is not returning any event when the phone on the PSTN is ringing. How can i detect the phone ringing on the SIP channel? Am desperate. Thanks.
Kevin P. Fleming
2012-May-02 21:49 UTC
[asterisk-users] Asterisk AMI SIP channel detect phone ringing
On 05/02/2012 04:41 PM, JIMMY GATHAGE wrote:> Hey guys, > > I am using a SIP trunk to make outgoing calls. Outgoing calls are > going through okay. I am using the AMI to Originate a call. The > channel is not returning any event when the phone on the PSTN is > ringing. How can i detect the phone ringing on the SIP channel?If your SIP provider is not sending you '180 Ringing' responses, then your only choice would be look into a 'call progress detection' package that can listen to the incoming audio and analyze it for ring-back. Unfortunately these are not terribly reliable, because ring-back tones vary greatly, and they might not even be traditional ring-back (many mobile providers offer 'music ringback' to their subscribers). -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA Check us out at www.digium.com & www.asterisk.org
Yaroslav Panych
2012-May-02 22:50 UTC
[asterisk-users] Asterisk AMI SIP channel detect phone ringing
2012/5/3 JIMMY GATHAGE <jgathage at gmail.com>:> I am using a SIP trunk to make outgoing calls. Outgoing calls are > going through okay. I am using the AMI to Originate a call. The > channel is not returning any event when the phone on the PSTN is > ringing. How can i detect the phone ringing on the SIP channel?It is possible you made synchronous origination. Did you specified Async: true header in origination action? If I remember correctly, synchronous origination blocks AMI session until it done origination routine.