In article <874506323.2924334.1567645810...@mail.yahoo.com>, bilal ghayyad <bilmar...@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.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