execute_extension coudn't worked correctly !!
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
participants (1)
-
Samira Mh