<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div class="" style="">I define nobal_amt variable for each user like this:</div><div class="" style=""><br class="" style=""></div><div style="background-color: transparent;" class="">&lt;include&gt;</div><div style="background-color: transparent;" class="">&nbsp; &lt;user id="448908901"&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &lt;params&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;param name="password" value="vfrT54%uu&amp;F"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;param name="vm-password" value="8901"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &lt;/params&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp;
 &lt;variables&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="toll_allow" value="domestic,international,local"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="calls_max_intl" value="1"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="accountcode" value="2"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="nobal_amt" value="-200"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="lowbal_amt" value="-200"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &lt;variable name="user_context" value="default"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; ......</div><div style="background-color: transparent;" class="">&nbsp;
 &nbsp; &lt;/variables&gt;</div><div style="background-color: transparent;" class="">&nbsp; &lt;/user&gt;</div><div style="background-color: transparent;" class="">&lt;/include&gt;</div><div class="" style=""><br class="" style=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class="">So in my dialplan i have:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;" class=""><br class="" style=""></div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp;&lt;action application="set" data="nibble_rate=${lcr_rate_1}"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set"
 data="nibble_account=${accountcode}"/&gt;</div><div style="background-color: transparent;" class="">&nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="set" data="nobal_amt=${nobal_amt}"/&gt;</div><div class="" style=""><br class="" style=""></div><div class="" style="">Regards</div><div class="" style=""><br></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" class=""> <div dir="ltr" class="" style=""> <font size="2" face="Arial" class="" style=""> On Monday, November 3, 2014 2:48 PM, Massimo Varriale &lt;mvar78@gmail.com&gt; wrote:<br class="" style=""> </font> </div>  <br class="" style=""><br class="" style=""> <div class="" style=""><div id="yiv9632071161"
 class="" style=""><div class="" style="">Yes, that's true.<div class="" style="">My XML parameter is using just this parameters, however I'm trying to find a way to bill a call based on a rate and reduce the credit accordly.</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">In my Lua script I'm trying to use this syntax to build the bridge string:</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><pre style="font-family:monospace, Courier;padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47, 111, 171);border-right-color:rgb(47, 111, 171);border-bottom-color:rgb(47, 111, 171);border-left-color:rgb(47, 111, 171);color:rgb(0, 0,
 0);background-color:rgb(249, 249, 249);line-height:1.3em;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:0px;" class="">&lt;action application="bridge" data="{enable_heartbeat_events=5,nobal_amt=-1000,nibble_rate=1,nibble_account=0838833133}<a rel="nofollow" shape="rect" ymailto="mailto:sofia/external/$1@tel.co.th" target="_blank" href="mailto:sofia/external/$1@tel.co.th" class="" style="">sofia/external/$1@tel.co.th</a>"/&gt;</pre><div class="" style=""><br clear="none" class="" style=""></div></div><div class="" style="">So, no way to set this variable dinamically?</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style="">Thank you</div><div class="" style="">Max</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><br
 clear="none" class="" style=""></div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><br clear="none" class="" style=""><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><br clear="none" class="" style=""><div class="" style=""><div class="" style="">Il giorno 03/nov/2014, alle ore 18:35, Avi Marcus ha scritto:</div><br clear="none" class="" style=""><blockquote type="cite" class="" style=""><div class="" id="yiv9632071161yqt39860" style=""><div dir="ltr" class="" style=""><div class="" style="">The old Wiki says it's a nibblebill configuration variable:</div><div class="" style=""><br clear="none" class="" style=""></div><div class="" style=""><div style="margin-top:0.4em;margin-right:0px;margin-bottom:0.5em;margin-left:0px;line-height:19.2000007629395px;color:rgb(0, 0, 0);font-family:sans-serif;font-size:13px;" class="">In your conf/autoload_configs/nibblebill.conf.xml add
 something like this:</div><pre style="font-family:monospace, Courier;padding-top:1em;padding-right:1em;padding-bottom:1em;padding-left:1em;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:dashed;border-right-style:dashed;border-bottom-style:dashed;border-left-style:dashed;border-top-color:rgb(47, 111, 171);border-right-color:rgb(47, 111, 171);border-bottom-color:rgb(47, 111, 171);border-left-color:rgb(47, 111, 171);color:rgb(0, 0, 0);line-height:1.3em;font-size:13px;background-color:rgb(249, 249, 249);" class="">&lt;param name="nobal_amt" value="0"/&gt;
&lt;param name="nobal_action" value="hangup XML default"/&gt;</pre></div></div></div>
_________________________________________________________________________<br clear="none" class="" style="">Professional FreeSWITCH Consulting Services: <br clear="none" class="" style=""><a rel="nofollow" shape="rect" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org" class="" style="">consulting@freeswitch.org</a><br clear="none" class="" style="">http://www.freeswitchsolutions.com<br clear="none" class="" style=""><br clear="none" class="" style="">Official FreeSWITCH Sites<br clear="none" class="" style="">http://www.freeswitch.org<br clear="none" class="" style="">http://confluence.freeswitch.org<br clear="none" class="" style="">http://www.cluecon.com<br clear="none" class="" style=""><br clear="none" class="" style="">FreeSWITCH-users mailing list<br clear="none" class="" style="">FreeSWITCH-users@lists.freeswitch.org<br clear="none" class=""
 style="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br clear="none" class="" style="">UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br clear="none" class="" style="">http://www.freeswitch.org</blockquote></div><br clear="none" class="" style=""></div></div></div></div><br class="" style=""><div class="" id="yqt86590" style="">_________________________________________________________________________<br clear="none" class="" style="">Professional FreeSWITCH Consulting Services: <br clear="none" class="" style=""><a shape="rect" ymailto="mailto:consulting@freeswitch.org" href="mailto:consulting@freeswitch.org" class="" style="">consulting@freeswitch.org</a><br clear="none" class="" style=""><a shape="rect" href="http://www.freeswitchsolutions.com/" target="_blank" class="" style="">http://www.freeswitchsolutions.com</a><br clear="none" class="" style=""><br clear="none" class="" style="">Official FreeSWITCH
 Sites<br clear="none" class="" style=""><a shape="rect" href="http://www.freeswitch.org/" target="_blank" class="" style="">http://www.freeswitch.org</a><br clear="none" class="" style=""><a shape="rect" href="http://confluence.freeswitch.org/" target="_blank" class="" style="">http://confluence.freeswitch.org</a><br clear="none" class="" style=""><a shape="rect" href="http://www.cluecon.com/" target="_blank" class="" style="">http://www.cluecon.com</a><br clear="none" class="" style=""><br clear="none" class="" style="">FreeSWITCH-users mailing list<br clear="none" class="" style=""><a shape="rect" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="" style="">FreeSWITCH-users@lists.freeswitch.org</a><br clear="none" class="" style=""><a shape="rect" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank" class=""
 style="">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br clear="none" class="" style="">UNSUBSCRIBE:<a shape="rect" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank" class="" style="">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br clear="none" class="" style=""><a shape="rect" href="http://www.freeswitch.org/" target="_blank" class="" style="">http://www.freeswitch.org</a></div><br class="" style=""><br class="" style=""></div>  </div> </div>  </div> </div></body></html>