<div dir="ltr"><div><br></div>I figured it out. import works with a comma separated list of variables. So instead of defining them each line, line of comma separated works.<br><br><div class="gmail_quote">On Sun, Jul 1, 2012 at 12:56 AM, Muhammad Naseer Bhatti <span dir="ltr"><<a href="mailto:nbhatti@gmail.com" target="_blank">nbhatti@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">http://pastebin.freeswitch.org/19408</a> is the complete PB for the call log.<div>
<a href="http://pastebin.freeswitch.org/19409" target="_blank">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>
</blockquote></div><br></div>