Reg. the outgoing call

Hi,

i have the asterisk 1.2.7.1 installed and it is working fine now.

in my extensions.conf file.i have the following dail plan to make the outgiong calls

exten => _NXXNXXXXXX,1,Dial(Zap/g1/wwwwww1${EXTEN}|20,tWw)

here i will be dialing the number straight way like 732 234 2345

But i want to enter 91 732 234 2345 , while making outgoing call… how do i right the dial plan?

any help will be appreciated.

change this

exten => _NXXNXXXXXX,1,Dial(Zap/g1/wwwwww1${EXTEN}|20,tWw)

to this

exten => _91NXXNXXXXXX,1,Dial(Zap/g1/wwwwww1${EXTEN:2}|20,tWw)

the pattern match just adds the 91 to the beginning, and the ${EXTEN:2} tells the Dial application to strip the leading two digits off the dial string.

this should be what you need - drop it in your extensions.conf and try it.