[asterisk-users] Understanding Incoming sip DID handling
Steve Edwards
asterisk.org at sedwards.com
Mon May 19 14:00:10 CDT 2008
On Mon, 19 May 2008, Joseph L. Casale wrote:
> How do I elegantly write something to catch the area code, if the number dialed was
> 1-xxx-555-1212? Or does the incoming number from my sip provider always show up to me
> as an 11 digit number:
>
> exten => 19495551212,1,`Do Something` for example?
I always get 10 digits from my providers. You can define an exact or (as
below) a matching pattern.
> If that sip account turfed the call into a custom context, [incoming_1] and nothing else
> entered it (the other line went its own, [incoming_2], I suppose I could just write:
>
> exten => s,1,`Do Something` which eliminates this question?
exten = _x.,1, playback(demo-congrats)
exten = _x.,n, hangup
Thanks in advance,
------------------------------------------------------------------------
Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list