[asterisk-users] How to make the sum of a ${VARIABLE} + 1 ??

Jonas Kellens jonas.kellens at telenet.be
Wed Nov 3 08:18:58 CDT 2010


Hello,

I have this in my dialplan :

exten => s,n,Set(vgLabel=vg(${number}+1))
exten => s,n,GoTo(${vgLabel})

But in stead of vgLabel becoming the SUM of 2 numbers, it is just a string :

[Nov  3 16:17:27]     -- Executing [s at macro-f:43] 
Set("SIP/test-00000002", "vgLabel=vg(1+1)") in new stack
[Nov  3 16:17:27]     -- Executing [s at macro-f:44] 
Goto("SIP/test-00000002", "vg(1+1)") in new stack
[Nov  3 16:17:27] NOTICE[23048]: pbx.c:3744 pbx_extension_helper: No 
such label 'vg(1+1)' in extension 's' in context 'macro-f'
[Nov  3 16:17:27] WARNING[23048]: pbx.c:9625 pbx_parseable_goto: 
Priority 'vg(1+1)' must be a number > 0, or valid label


How to overcome this ?!
Asterisk 1.6.2.10


Kind regards,
Jonas.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101103/7baa768f/attachment.htm 


More information about the asterisk-users mailing list