[Asterisk-Users] (no subject)
wasim at convergence.com.pk
wasim at convergence.com.pk
Mon Jun 2 22:09:10 MST 2003
denzel:
read the asterisk/README.variables
exten => s,1,SetVar(v2=0)
exten => s,2,Playback(beep)
exten => s,3,SetVar(v2=$[${v2} + 1])
exten => s,4,GotoIf($[${v2} > 2]?t|1:*|1)
line 3, increments the value of the variable, we use it to loop a context
for a limited number of times, etc...
- wasim
On Tue, 3 Jun 2003 denzel at infotechs.lk wrote:
> I wanna do some arithmatic operations (addition and substraction -integer
> operation) inside extensions.conf. Is there a simple way to do this. If I do
>
> yy = ${xx} + 1 // say "xx" is initialized to '0'
> the resulting "yy" will show
> "0 + 1"
> Obiviously not the result I need. Any help !!!!!
More information about the asterisk-users
mailing list