[kamailio/kamailio] ERROR: cnxcc terminate_call(): Error executing dlg_end_dlg command. Return code was [404] (#1051)
### Description <!-- I want to do call drop when balance reach to 0. so for that i am using CNXCC module and kamailio 4.2 version now when user balance reach to 0 then i can see in log terminate_call(): Error executing dlg_end_dlg command. Return code was [404] Apr 1 06:49:56 sip /usr/sbin/kamailio[1316]: ALERT: cnxcc [cnxcc_check.c:81]: check_calls_by_money(): [S2N5rn7nlu] call has exhausted its credit. Breaking the loop So my target is call disconnect when users balance reach at 0. --> #### Log Messages ``` terminate_call(): Error executing dlg_end_dlg command. Return code was [404] Apr 1 06:49:56 sip /usr/sbin/kamailio[1316]: ALERT: cnxcc [cnxcc_check.c:81]: check_calls_by_money(): [S2N5rn7nlu] call has exhausted its credit. Breaking the loop ``` ### Additional Information * **Kamailio Version** - output of `kamailio -v` ``` kamctl -v /usr/sbin/kamctl 4.2.0 ``` * **Operating System**: ``` Centos 6 64bit ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051
Is this happening often? Does it happen to have the sip traffic (pcap) for such case? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051#issuecomment-291882384
Is this happening often? - yes never terminate call on exceed balance. so that why balance is going to negative? error log Apr 7 02:41:15 newsip /usr/local/sbin/kamailio[28567]: ERROR: cnxcc [cnxcc_mod.c:734]: __setup_billing(): Call [Cl11aQtI3l] not found Apr 7 02:41:15 newsip /usr/local/sbin/kamailio[28567]: INFO: <script>: Setting credit 0.01 for user 919999999999 Apr 7 02:41:15 newsip /usr/local/sbin/kamailio[28567]: INFO: <script>: Setting up money based credit control rate=0.000271667 Apr 7 02:41:25 newsip /usr/local/sbin/kamailio[28534]: ERROR: <script>: dialog start:Cl11aQtI3l:7130:20332 Apr 7 02:41:26 newsip /usr/local/sbin/kamailio[28556]: ALERT: cnxcc [cnxcc_check.c:76]: check_calls_by_money(): [Cl11aQtI3l] call has exhausted its credit. Breaking the loop Apr 7 02:41:26 newsip /usr/local/sbin/kamailio[28556]: ERROR: cnxcc [cnxcc_mod.c:1089]: terminate_call(): Error executing dlg_end_dlg command. Return code was [404] Apr 7 02:42:22 newsip /usr/local/sbin/kamailio[28569]: ERROR: <core> [tcp_read.c:292]: tcp_read_data(): error reading: Connection reset by peer (104) ([49.34.1.126]:48004 -> Apr 7 02:42:22 newsip /usr/local/sbin/kamailio[28569]: ERROR: <core> [tcp_read.c:293]: tcp_read_data(): -> [163.172.89.240]:443) Apr 7 02:42:22 newsip /usr/local/sbin/kamailio[28569]: ERROR: <core> [tcp_read.c:1321]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7f42f6a89628 r: 0x7f42f6a896a8 Apr 7 02:43:50 newsip /usr/local/sbin/kamailio[28571]: ERROR: cnxcc [cnxcc_mod.c:584]: __stop_billing(): Call [Cl11aQtI3l] not found Apr 7 02:43:50 newsip /usr/local/sbin/kamailio[28571]: ERROR: <script>: RTP-stats:60 7654 1642 9296 0 Apr 7 02:47:29 newsip /usr/local/sbin/kamailio[28572]: ERROR: <core> [tcp_read.c:292]: tcp_read_data(): error reading: Connection reset by peer (104) ([49.34.1.126]:48007 -> Apr 7 02:47:29 newsip /usr/local/sbin/kamailio[28572]: ERROR: <core> [tcp_read.c:293]: tcp_read_data(): -> [163.172.89.240]:443) Apr 7 02:47:29 newsip /usr/local/sbin/kamailio[28572]: ERROR: <core> [tcp_read.c:1321]: tcp_read_req(): ERROR: tcp_read_req: error reading - c: 0x7f42f6a89628 r: 0x7f42f6a896a8 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051#issuecomment-292457115
I have the same problem with Kamailio 4.4.6 -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051#issuecomment-332537798
Closing this one because the code was updated to use internal dialog API to end the call instead of building the old-style MI command and executing it. The code is now different. If still an issue with latest version, open a new issue with the relevant details and logs for it. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051#issuecomment-420989225
Closed #1051. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/1051#event-1843490406
participants (3)
-
Daniel-Constantin Mierla -
Dipen Patel -
Pepelux