[Freeswitch-users] [MOD Nibblebill] Postpaid Customer

FERNANDO VILLARROEL fvillarroel at yahoo.com
Mon Nov 3 21:23:49 MSK 2014


I define nobal_amt variable for each user like this:

<include>
  <user id="448908901">
    <params>
      <param name="password" value="vfrT54%uu&F"/>
      <param name="vm-password" value="8901"/>
    </params>
    <variables>
      <variable name="toll_allow" value="domestic,international,local"/>
      <variable name="calls_max_intl" value="1"/>
      <variable name="accountcode" value="2"/>
      <variable name="nobal_amt" value="-200"/>
      <variable name="lowbal_amt" value="-200"/>
      <variable name="user_context" value="default"/>
      ......
    </variables>
  </user>
</include>

So in my dialplan i have:

       <action application="set" data="nibble_rate=${lcr_rate_1}"/>
        <action application="set" data="nibble_account=${accountcode}"/>
        <action application="set" data="nobal_amt=${nobal_amt}"/>

Regards



On Monday, November 3, 2014 2:48 PM, Massimo Varriale <mvar78 at gmail.com> wrote:
 


Yes, that's true.
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.

In my Lua script I'm trying to use this syntax to build the bridge string:

<action application="bridge" data="{enable_heartbeat_events=5,nobal_amt=-1000,nibble_rate=1,nibble_account=0838833133}sofia/external/$1 at tel.co.th"/>

So, no way to set this variable dinamically?

Thank you
Max









Il giorno 03/nov/2014, alle ore 18:35, Avi Marcus ha scritto:

The old Wiki says it's a nibblebill configuration variable:
>
>
>In your conf/autoload_configs/nibblebill.conf.xml add something like this:
><param name="nobal_amt" value="0"/>
<param name="nobal_action" value="hangup XML default"/>
_________________________________________________________________________
>Professional FreeSWITCH Consulting Services: 
>consulting at freeswitch.org
>http://www.freeswitchsolutions.com
>
>Official FreeSWITCH Sites
>http://www.freeswitch.org
>http://confluence.freeswitch.org
>http://www.cluecon.com
>
>FreeSWITCH-users mailing list
>FreeSWITCH-users at lists.freeswitch.org
>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>http://www.freeswitch.org


_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
consulting at freeswitch.org
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141103/bd210dbb/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list