Just to add I am exporting the nibblebill variables before I call bridge. 

On Wed, Jan 18, 2017 at 6:03 PM, John Nash <john.nash778@gmail.com> wrote:
Sorry i missed that but now A leg hangs up but call still goes to the destination (b leg)

On Wed, Jan 18, 2017 at 5:50 PM, Andrew Cassidy <andrew@cassidywebservices.co.uk> wrote:

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

_________________________________________________________________________
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