I apologize, I coppied the wrong code,
here is the code I am using:

; Adding Area code and striping 9 for local numbers
exten => _9XXXXXXX,n,Set(CALLERID(all)= <3817383444>)
exten => _9XXXXXXX,n,Dial(SIP/intelepeer/1381${EXTEN:1},80)


Thanks,
motty

On 04/28/2015 11:54 AM, Chad Wallace wrote:
On Tue, 28 Apr 2015 07:21:12 -0700
Motty Cruz <motty.c...@gmail.com> wrote:

here is what I did and worked for me:

exten => 1381+NXXXXXX,1,Set(CALLERID(number)=3817383444)

exten => 1+NXXNXXXXXX,2,Dial(SIP/SIP-Provider/${EXTEN:1},80)
I find it hard to believe this is working.

First, you don't have a leading underscore on your patterns.  Your
users aren't literally dialing the N's and X's are they?

Second, what's with the plus in the extension?  You want your users to
dial that?

Third, that's two different extensions, one with priority 1 and one
with priority 2.  The first one will set a variable and hangup, and the
second.... there's no priority 1 for that extension... I've never tried
that... I'm assuming it just won't work.



-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

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

Reply via email to