[asterisk-users] Re: GSM gateway and FXO ATA

Tomislav Parčina tparcina at lama.hr
Tue Aug 22 03:56:45 MST 2006


In article <44EACA39.3000309 at mjvn.net>, m at mjvn.net says...
> Assuming the 456 is the ATA number and the outside number is always 10
> digits.
> 
> exten => _456.,1,Dial(SIP/${EXTEN:0:3}/${EXTEN:-10},tT)
> 
> but then it might as well be
> 
> exten => _456.,1,Dial(SIP/456/${EXTEN:-10},tT)


Paul, Mamus, thank you both!
Combining you answers I have found solution. I have forget to exclude other numbers (those after first three). Now this is what works just fine.

exten => _456.,1,Dial(SIP/${EXTEN:0:3},30,tTD(${EXTEN:3}))

Another question, if I would like to delay sending EXTEN:3 digits, where should I put w option? If I put it after tTD then it's for one touch record.



--
Tomislav Parčina
Lama Computers Split
Stinice 12, 21000 Split
Tel.: +385(21)495148
Mob.: +385(91)1212148
SIP: tomo at pbx.lama.hr
e-mail: tparcina#lama.hr
http://www.lama.hr



More information about the asterisk-users mailing list