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
your dial command is
your dial command is improperly formatted, you did not specify the channel type or resource.
Tried this with no luck
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
Got it!
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
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