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

xAD xad at xboxmediacenter.com
Sun Jul 24 18:43:46 MST 2005


Yes your are right, this is the modified version for CVS HEAD ..but don't
works  ;-D you have tried it?

this version works only on STABLE:

[macro-tono_simulato]
exten => s,1,SetVar(DIALED=${ARG1})
exten => s,2,SetVar(TOCONTEXT=${ARG2})
exten => s,3,SetVar(STRIP=${ARG3})
exten => s,4,SetVar(TONES=425/600,0/1000,425/200,0/200 )
exten => s,5,Goto(tono_simulato_pausa|s|1)

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

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

exten => _X,100,SetVar(DIALED=${DIALED}${EXTEN})
exten => _X,101,StopPlaytones
exten => _X,102,DigitTimeout(3)

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

exten => t,1,Hangup

you know why on CVS don't works?

thanks.

----- Original Message ----- 
From: "Kevin P. Fleming" <kpfleming at digium.com>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Monday, July 25, 2005 12:16 AM
Subject: Re: [Asterisk-Users] why this macro works Only with a *
StableVersion? ; -(


> xAD wrote:
> > 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)
>
> This macro _cannot_ work in version 1.0.x, because Set() is not
> supported there (only SetVar()).
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
> __________ NOD32 1.1176 (20050722) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com
>
>





More information about the asterisk-users mailing list