Hello ,
I was trying to implement the billing module in freeswitch using nibble_bill modules. But facing issue with the “nobal_action” hangup and “lowbal_action” play ding. I have already created the hangup and ding dialplan under the context. I am getting below error during calls.
The nobal_action works after completion of nibble heartbeat, but the calls didnt hangup immediately when the nibble _balance is zero.
Please advice
2023-12-05 10:40:07.409820 95.07% [DEBUG] mod_nibblebill.c:430 Retrieved current balance for account 1 (balance = -0.961598)
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [DEBUG] mod_nibblebill.c:645 Balance of -0.961598 fell below low balance amount of 5.000000! (Acc
ount 1)
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [ERR] switch_core_session.c:2766 Invalid Application play
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [NOTICE] switch_core_session.c:2767 Hangup sofia/internal/1002@192.168.1.39 [CS_EXECUTE] [DESTINA
TION_OUT_OF_ORDER]
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [DEBUG] mod_hash.c:293 Usage for 192.168.1.39_1001 is now 0
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [ERR] mod_nibblebill.c:649 Low balance action didn’t execute
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [CRIT] mod_nibblebill.c:657 Balance of -0.961598 fell below allowed amount of 0.000000! (Account
1)
370c2f52-3e62-4404-90a1-ef3c0d780877 2023-12-05 10:40:07.409820 95.07% [INFO] mod_nibblebill.c:740 Paused billing timestamp!
42b43f79-236d-4a08-a8b2-80a7295f279f 2023-12-05 10:40:07.409820 95.07% [INFO] mod_dialplan_xml.c:639 Processing 1002 <1002>->hangup in context 192.168.1.39
42b43f79-236d-4a08-a8b2-80a7295f279f 2023-12-05 10:40:07.430539 95.07% [DEBUG] switch_ivr_bridge.c:819 sofia/internal/1002@192.168.1.39 ending bridge by request from