you need nobal_action and nobal_amt

https://freeswitch.org/confluence/display/FREESWITCH/mod_nibblebill#mod_nibblebill-HangupCallWhenBalanceDepleted

On 18 January 2017 at 11:45, John Nash <john.nash778@gmail.com> wrote:
I am using latest freeswitch and trying to test mod_nibblebill. I am trying to bill only b leg and it seems to cut the amount as per rates and heartbeat. But it does not restrict call if balance is 0 or in minus. I was hoping it will cut the calls the moment it reaches 0


        session:execute("export", "nolocal:enable_heartbeat_events=60")
        session:execute("export", "nolocal:nibble_account=1")
        session:execute("export", "nolocal:nibble_increment=1")
        session:execute("export", "nolocal:nibble_rate=0.02")
      

Is there anything I am doing wrong?

_________________________________________________________________________
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



--
Andrew Cassidy BSc (Hons) MBCS SSCA
Managing Director