[MOD Nibblebill] Postpaid Customer
Hi All, is possible to create a scenario in which I have a postpaid customer in which the credit can go below zero but no more than a maximum value allowed? The wiki talks about the feature of having a postpaid customer, but there are no example regarding this feature. But on prepaid there are many and many example, thank for this, great! BTW, currently I can create a prepaid customer and as soon as credit reach 0 the call is dropped correctly, but how can I implement a postpaid customer? Thank you so much Max
you just allow a negative balance for a post paid customer Ken Sent from my iPad
On Nov 1, 2014, at 8:30, Massimo Varriale <mvar78@gmail.com> wrote:
Hi All, is possible to create a scenario in which I have a postpaid customer in which the credit can go below zero but no more than a maximum value allowed? The wiki talks about the feature of having a postpaid customer, but there are no example regarding this feature. But on prepaid there are many and many example, thank for this, great!
BTW, currently I can create a prepaid customer and as soon as credit reach 0 the call is dropped correctly, but how can I implement a postpaid customer?
Thank you so much Max _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Ken! Is there an option for this? Because as fas as I know I'm setting into the Dialplan nibble_account nibble_rate And into the mod nibblebill conf I'm just setting up columns and that's it. The default behaviour is to drop call as the credit reach 0, I didn't found any other option for postpaid. Thanks Max Il giorno 01/nov/2014, alle ore 15:10, Ken Rice ha scritto:
you just allow a negative balance for a post paid customer
Ken Sent from my iPad
On Nov 1, 2014, at 8:30, Massimo Varriale <mvar78@gmail.com> wrote:
Hi All, is possible to create a scenario in which I have a postpaid customer in which the credit can go below zero but no more than a maximum value allowed? The wiki talks about the feature of having a postpaid customer, but there are no example regarding this feature. But on prepaid there are many and many example, thank for this, great!
BTW, currently I can create a prepaid customer and as soon as credit reach 0 the call is dropped correctly, but how can I implement a postpaid customer?
Thank you so much Max _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Set variable nobal_amt to negative value. On Saturday 01 November 2014 15:45:45 Massimo Varriale wrote:
Hi Ken! Is there an option for this?
Because as fas as I know I'm setting into the Dialplan nibble_account nibble_rate
And into the mod nibblebill conf I'm just setting up columns and that's it.
The default behaviour is to drop call as the credit reach 0, I didn't found any other option for postpaid.
Thanks Max
Il giorno 01/nov/2014, alle ore 15:10, Ken Rice ha scritto:
you just allow a negative balance for a post paid customer
Ken Sent from my iPad
On Nov 1, 2014, at 8:30, Massimo Varriale <mvar78@gmail.com> wrote:
Hi All, is possible to create a scenario in which I have a postpaid customer in which the credit can go below zero but no more than a maximum value allowed? The wiki talks about the feature of having a postpaid customer, but there are no example regarding this feature. But on prepaid there are many and many example, thank for this, great!
BTW, currently I can create a prepaid customer and as soon as credit reach 0 the call is dropped correctly, but how can I implement a postpaid customer?
Thank you so much Max _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Ken! Thank you for your answer, but I have another question regarding this....can this variable be set into a LUA script or is a XML global variable? I'm trying to set this option this way but the value that nibble is considering is the XML (zero) and drop the call session:execute("set","nobal_amt=-10") Thank you so much! Max Il giorno 01/nov/2014, alle ore 15:10, Ken Rice ha scritto:
you just allow a negative balance for a post paid customer
Ken Sent from my iPad
On Nov 1, 2014, at 8:30, Massimo Varriale <mvar78@gmail.com> wrote:
Hi All, is possible to create a scenario in which I have a postpaid customer in which the credit can go below zero but no more than a maximum value allowed? The wiki talks about the feature of having a postpaid customer, but there are no example regarding this feature. But on prepaid there are many and many example, thank for this, great!
BTW, currently I can create a prepaid customer and as soon as credit reach 0 the call is dropped correctly, but how can I implement a postpaid customer?
Thank you so much Max _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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"/>
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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Hi Fernando! Thank you for your answer, however I'm trying to set this variable dinamically using a LUA script. Otherwise I have to create a user XML with those preferencies. Thanks Max Il giorno 03/nov/2014, alle ore 19:23, FERNANDO VILLARROEL ha scritto:
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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (5)
-
Avi Marcus
-
FERNANDO VILLARROEL
-
Ken Rice
-
Massimo Varriale
-
Sergey Okhapkin