[SR-Users] Potential CNXCC bug

Jay Patel clecny at gmail.com
Tue Jun 2 22:04:36 CEST 2015


I am trying to use cnxcc for credit control . It seems like dialog and
cnxcc modules are getting out of sync.  For some reason , I see
cnxcc.active_clients  gets stuck and they never clear up.  Interestingly
only  calls  that gets failure 5xx and 4xx  from PSTN gateway gets stuck,
all successful calls are cleared .  I have made sure , I have
setflag(DLG_FLAG) 1st line in my routing logic.  If you need my routing
script, I can share with you .

Am I missing anything obvious?


As you can see ,  "dlg.list" is empty, ( no calls in progress in system.)

kamcmd> dlg.list
kamcmd>

But , two user are stuck ( 1 with 6 calls in progress and  another with 2
calls in progress)
kamcmd> cnxcc.active_clients
client_id:917044056840,number_of_calls:6,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;
client_id:971554578191,number_of_calls:2,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;

Here are the call dumps for both users.

kamcmd> cnxcc.check_client s:971554578191
id:0,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:7.690000,global_max_amount:0.00000
id:1,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:7.690000,global_max_amount:0.00000
kamcmd>
kamcmd>
kamcmd>  cnxcc.check_client s:917044056840
id:0,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.00000
id:1,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000
id:2,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000
id:3,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000
id:4,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000
id:5,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.00000
kamcmd>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150602/b45eec0d/attachment.html>


More information about the sr-users mailing list