<div dir="ltr"><br>I have gone nuts trying to figure out what is going on. Using xml_cdr to post CDR(s) to webserver, The Bridge is done outside the lua script, and all vars are set in lua and exported. <br><br>....<div>session:setVariable("import", "gateway")<br>
session:setVariable("import", "admin_rate_group")<br>session:setVariable("import", "sell_rate")<br>session:setVariable("import", "cost_rate")<br>....<br><br>The problem is that if I set sell_rate and cost_rate both variables together, who ever is in the end disapears from the XML POST. If I change their order, for example set cost_rate first and then sell_rate, then sell_rate works fine and cost_rate goes off. Looks like some sort of variable overlapping. I am HEAD with latest/latest.<br>
<br>freeswitch.consoleLog(FREESWITCH_CONSOLE_LOG_LEVEL, "\n cost_rate ".. cost_rate .." \n");<br>freeswitch.consoleLog(FREESWITCH_CONSOLE_LOG_LEVEL, "\n sell_rate ".. sell_rate .." \n");<br>
<br>This works fine. There is data in these two variables. I am setting up these session variables along with other variables for the bridge. log-b-leg is false in the config for xml_cdr.<br><br><a href="http://pastebin.freeswitch.org/19408">http://pastebin.freeswitch.org/19408</a> is the complete PB for the call log.<div>
<a href="http://pastebin.freeswitch.org/19409">http://pastebin.freeswitch.org/19409</a> is the complete XML CDR debug.</div><div><br></div><div>cdr_csv shows the same</div><div><br></div><div><div>"Bhatti",<b><font color="#ff0000">"2.10000","0.19280"</font></b>,"415591","9198","default","2012-06-28 03:32:29","2012-06-28 03:32:29","2012-06-28 03:32:32","3","3","NORMAL_CLEARING","be292014-c0b8-11e1-ae74-2bc60749f960","","","",""</div>
<div><br></div><div>"Bhatti",<b><font color="#ff0000">"2.10000",""</font></b>,"415591","9198","default","2012-06-28 03:32:29","2012-06-28 03:32:29","2012-06-28 03:32:32","3","3","NORMAL_CLEARING","be2782fe-c0b8-11e1-ae6f-2bc60749f960","be292014-c0b8-11e1-ae74-2bc60749f960","","",""</div>
</div><div><br></div><div>Sometimes it works sometimes it wont. All the variables are seen in the call log. Am I doing something wrong or we hit some sort of a bug?</div><div><br></div><div><br></div><div>Thank.</div></div>
</div>