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      [EMAIL PROTECTED]      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000

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

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

Reply via email to