bilal ghayyad
2019-Sep-05 01:10 UTC
[asterisk-users] asterisk-users Digest, Vol 181, Issue 3
Thank you a lot for your kindly help and reply. Actually it helped me a lot.I was using _X. in the extensions.conf at the trunkinbound context.Can you advise me what is the difference between _X. and s? In other words, when it is better to use s and when it is better to use _X.? Again, I am fully thanks for you.RegardsBilal> Hello; > > I am facing a trouble with the SIP service provider, they are saying > that there is a problem related to message option 200 (the heartbeat), > so what is required to add this for the sip configuration? Below is my > sip debug trace log with the them and the sip peer configuration:OPTIONS is treated as if it were an INVITE, so it looks up the extension in the dialplan. The following shows what extension and context: [Sep 4 12:42:20] Looking for s in trunkinbound (domain 10.240.147.26) If you add an "s" extension to the "trunkinbound" context it should then respond 200 OK. -- Joshua C. Colp Digium - A Sangoma Company | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20190905/8279e80b/attachment.html>
Tony Mountifield
2019-Sep-05 08:30 UTC
[asterisk-users] asterisk-users Digest, Vol 181, Issue 3
In article <874506323.2924334.1567645810409 at mail.yahoo.com>, bilal ghayyad <bilmar_gh at yahoo.com> wrote:> > Thank you a lot for your kindly help and reply. Actually it helped me a lot.I was using _X. in the extensions.conf at > the trunkinbound context.Can you advise me what is the difference between _X. and s? In other words, when it is better > to use s and when it is better to use _X.? > Again, I am fully thanks for you.RegardsBilalThey do different things. _X. will match any extension number beginning with a digit. This is what you would normally use to match incoming calls that specify a number, and is presumably what you have already. s will only match is no extension number is given. This would be the case for an analogue line, for example, or a SIP connection that didn't give a destination number. It is also matched for OPTIONS requests used to handle "qualify". So in your [trunkinbound] context, just add a line like this: exten => s,1,Hangup And leave everything else in that context unchanged. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org