<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">hi guys,</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">in the path:/usr/loca/freeswitch/conf/default/</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">i have created two .xml file named:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">001_luacallduration.xml &nbsp;and &nbsp;01_ratelist.xml</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">so the content of &nbsp;the above files are as follow:</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div><font face="'times new roman', 'new york', times,
 serif">&lt;include&gt;</font></div><div><font face="'times new roman', 'new york', times, serif" style="background-color: rgb(96, 191, 0);">&nbsp; &lt;extension name="mytest"&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^788" break="never"&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="odbc_query" data="select cash as cashvalue from accounts where id like '${nibble_account}';"/&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO The value of cashvalue is ${cashvalue}" /&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!--
 Check Cash --&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="lua" data="checkcash.lua ${cashvalue}" /&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;!-- Check Nibble_rate --&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO The value of nibble_account is &nbsp;${nibble_account}"/&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO The value of nibble_rate [before] is &nbsp;${nibble_rate}"/&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span
 style="background-color: rgb(191, 191, 0);">&nbsp; <span>&nbsp; &lt;action application="execute_extension" &nbsp;data="mainratelist &nbsp;XML &nbsp;default "/&gt;</span></span></font></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">&lt;/condition&gt;</span></div><div><font face="'times new roman', 'new york', times, serif">&nbsp;&lt;/extension&gt;</font></div><div><font face="'times new roman', 'new york', times, serif">&lt;/include&gt;</font></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">01_ratelist.xml&nbsp;:<br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div><div><span style="font-family: 'times new roman', 'new york', times, serif; background-color: rgb(191, 191, 0);">&lt;extension
 name="mainratelist"&gt;</span></div><div><span style="font-family: 'times new roman', 'new york', times, serif; ">&lt;condition field="destination_number" expression="^788" break="on-true"&gt;</span><br></div><div><span style="font-family: 'times new roman', 'new york', times, serif; ">&lt;action application="set" data="nibble_rate=<span style="background-color: rgb(255, 255, 0);">1570</span>"/&gt;</span><br></div><div><span style="font-family: 'times new roman', 'new york', times, serif; ">&lt;/condition&gt;</span><br></div><div><span style="font-family: 'times new roman', 'new york', times, serif; ">&lt;/condition&gt;</span><br></div><div><span style="font-family: 'times new roman', 'new york', times, serif;">&lt;/extension&gt;</span></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div
 style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">i want to set nibble_rate using <span style="background-color: rgb(191, 191, 0);">execute_extemsion&nbsp;</span>&nbsp; application and return <span style="background-color: rgb(255, 255, 0);">1570</span> to mytest extension, but execute_extension &nbsp;don't work and nibble_rate left empty and coldn't return back any things :(</div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; ">plz help ,thanks&nbsp;</div></div></div></div></body></html>