<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=""><include></div><div style="background-color: transparent;" class=""> <user id="448908901"></div><div style="background-color: transparent;" class=""> <params></div><div style="background-color: transparent;" class=""> <param name="password" value="vfrT54%uu&F"/></div><div style="background-color: transparent;" class=""> <param name="vm-password" value="8901"/></div><div style="background-color: transparent;" class=""> </params></div><div style="background-color: transparent;" class="">
<variables></div><div style="background-color: transparent;" class=""> <variable name="toll_allow" value="domestic,international,local"/></div><div style="background-color: transparent;" class=""> <variable name="calls_max_intl" value="1"/></div><div style="background-color: transparent;" class=""> <variable name="accountcode" value="2"/></div><div style="background-color: transparent;" class=""> <variable name="nobal_amt" value="-200"/></div><div style="background-color: transparent;" class=""> <variable name="lowbal_amt" value="-200"/></div><div style="background-color: transparent;" class=""> <variable name="user_context" value="default"/></div><div style="background-color: transparent;" class=""> ......</div><div style="background-color: transparent;" class="">
</variables></div><div style="background-color: transparent;" class=""> </user></div><div style="background-color: transparent;" class=""></include></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=""> <action application="set" data="nibble_rate=${lcr_rate_1}"/></div><div style="background-color: transparent;" class=""> <action application="set"
data="nibble_account=${accountcode}"/></div><div style="background-color: transparent;" class=""> <action application="set" data="nobal_amt=${nobal_amt}"/></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 <mvar78@gmail.com> 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=""><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>"/></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=""><param name="nobal_amt" value="0"/>
<param name="nobal_action" value="hangup XML default"/></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>