I have some var: <action application="set" data="input_fail_counter=0"/> And in some moment I want to increase it by 1. I try this way: <action application="set" data="input_fail_counter=${input_fail_counter}+1"/> And have result input_fail_counter=0+1 i.e. just string merge... How to handle it right way in dialplan? -- С уважением, Равальдини Патрик Стефанович Инженер по тестированию ООО «Центр речевых технологий» Тел.: (812) 325-8848, доб. 6736 Факс: (812) 327-9297 E-mail: patrick@speechpro.com http://www.speechpro.ru
I think you should try expr api from mod_expr Try this: <action application="set" data="input_fail_counter=${expr(${input_fail_counter}+1)}"/> patrick wrote:
I have some var: <action application="set" data="input_fail_counter=0"/>
And in some moment I want to increase it by 1. I try this way: <action application="set" data="input_fail_counter=${input_fail_counter}+1"/> And have result input_fail_counter=0+1 i.e. just string merge...
How to handle it right way in dialplan?
Thank you!!! It works!!! Tamas Cseke пишет:
I think you should try expr api from mod_expr Try this: <action application="set" data="input_fail_counter=${expr(${input_fail_counter}+1)}"/>
patrick wrote:
I have some var: <action application="set" data="input_fail_counter=0"/>
And in some moment I want to increase it by 1. I try this way: <action application="set" data="input_fail_counter=${input_fail_counter}+1"/> And have result input_fail_counter=0+1 i.e. just string merge...
How to handle it right way in dialplan?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- С уважением, Равальдини Патрик Стефанович Инженер по тестированию ООО «Центр речевых технологий» Тел.: (812) 325-8848, доб. 6736 Факс: (812) 327-9297 E-mail: patrick@speechpro.com http://www.speechpro.ru
participants (2)
-
patrick
-
Tamas Cseke