Re: [asterisk-users] asterisk-users Digest, Vol 181, Issue 3

2019-09-05 Thread Tony Mountifield
In article <874506323.2924334.1567645810...@mail.yahoo.com>,
bilal ghayyad  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.RegardsBilal

They 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: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] asterisk-users Digest, Vol 181, Issue 3

2019-09-04 Thread bilal ghayyad
 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  -- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
  https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users