Skip to main content

Prepend Issues

Posted by xenoscion on Thu, 11/20/2008

Hello,
I am having the hardest time getting the PBX to prepend the digit 1 before calls. So far I have tried to add it in the trunks setting. I have added it to extensions.conf as _X.,1,Dial(1${EXTEN}) and exten => _X.,1,Dial(1${EXTEN}) . Still with no luck, can anyone tell me what am doing wrong ?
Thanks,
Brandon


Submitted by ipfreely on Thu, 11/20/2008 Permalink

I have added it to the outbound routes with no issue. I have not tried it on the trunks or by altering the .conf files.

Thanks,

Chris A

Submitted by xenoscion on Fri, 11/21/2008 Permalink

I tried this, but it is still not prepending 1, I feel like am missing something really simple.

[from-1]

exten => _XXXXXXXXXX,1,noop(${EXTEN})

exten => _XXXXXXXXXX,n,set(EXTEN="1"${EXTEN})

exten => _XXXXXXXXXX,n,goto(from-internal,${exten},1)

include => from-internal

Submitted by xenoscion on Fri, 11/21/2008 Permalink

Ok i got it so now it prepends 1 as well as the area code i did this:

exten => _XXXXXXX,1,Dial(SIP/Provider/1303${EXTEN})

exten => _XXXXXXXXXX,1,Dial(SIP/Provider/1${EXTEN})

Were provider equals my sip trunk provider as it reads in the asterisk CLI shell. So it now pre-pends 1303 to any 7 digit number and 1 to any 10 digit number as marked by the X's.

Thanks for the help,

Brandon