[Asterisk-Users] why this macro works Only with a * Stable Version? ; -(

xAD xad at xboxmediacenter.com
Sun Jul 24 14:29:03 MST 2005


Hi all, i have a weird problem, i need to know why this 'simple' macro works Only with a * STABLE version (1.0.0.x to 1.0.0.9) , if i try it with a CVS HEAD version.. don't works ;-(

Thanks in advance.

[local]

include => default

[macro-tono_simulato]
exten => s,1,Set(DIALED=${ARG1})
exten => s,2,Set(TOCONTEXT=${ARG2})
exten => s,3,Set(STRIP=${ARG3})
exten => s,4,Set(TONES=dial)  
exten => s,5,Goto(tono_simulato_pausa|s|1)

[tono_simulato_pausa]
exten => s,1,Set(TIMEOUT(digit)=0)
exten => s,2,Wait(0.5)
exten => s,3,Playtones(${TONES})
exten => s,4,WaitExten(10)

exten => _X,1,GotoIF(${DIALED}${EXTEN} > 0?100:2)
exten => _X,2,Set(DIALED=${DIALED}${EXTEN})
exten => _X,3,Set(TIMEOUT(digit)=0)

exten => _X,100,Set(DIALED=${DIALED}${EXTEN})
exten => _X,101,StopPlaytones
exten => _X,102,Set(TIMEOUT(digit)=3)

exten => _X.,1,Goto(${TOCONTEXT}|$[${DIALED:${STRIP}}]${EXTEN}|1)

exten => t,1,Hangup


[default]

exten => 00,1,Macro(tono_simulato,${EXTEN},uscita_bri,1)

[uscita_bri]

exten => _X.,1,Dial(Modem/ttyI1:${EXTEN},30)
exten => _X.,2,Hangup

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050724/9da21708/attachment.htm


More information about the asterisk-users mailing list