[Freeswitch-users] execute_extension coudn't worked correctly !!
Samira Mh
saami_mh at ymail.com
Wed Jun 6 15:58:57 MSD 2012
hi guys,
in the path:/usr/loca/freeswitch/conf/default/
i have created two .xml file named:
001_luacallduration.xml and 01_ratelist.xml
so the content of the above files are as follow:
<include>
<extension name="mytest">
<condition field="destination_number" expression="^788" break="never">
<action application="odbc_query" data="select cash as cashvalue from accounts where id like '${nibble_account}';"/>
<action application="log" data="INFO The value of cashvalue is ${cashvalue}" />
<!-- Check Cash -->
<action application="lua" data="checkcash.lua ${cashvalue}" />
<!-- Check Nibble_rate -->
<action application="log" data="INFO The value of nibble_account is ${nibble_account}"/>
<action application="log" data="INFO The value of nibble_rate [before] is ${nibble_rate}"/>
<action application="execute_extension" data="mainratelist XML default "/>
</condition>
</extension>
</include>
01_ratelist.xml :
<extension name="mainratelist">
<condition field="destination_number" expression="^788" break="on-true">
<action application="set" data="nibble_rate=1570"/>
</condition>
</condition>
</extension>
i want to set nibble_rate using execute_extemsion application and return 1570 to mytest extension, but execute_extension don't work and nibble_rate left empty and coldn't return back any things :(
plz help ,thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120606/6959efe2/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list