<div dir="ltr"><div>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 .<br><br></div><div>Am I missing anything obvious?<br></div><div><br></div><div><br></div>As you can see ,  "dlg.list" is empty, ( no calls in progress in system.)<br><div><br>kamcmd> dlg.list<br>kamcmd><br><br>But , two user are stuck ( 1 with 6 calls in progress and  another with 2 calls in progress)<br>kamcmd> cnxcc.active_clients<br>client_id:917044056840,number_of_calls:6,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;<br>client_id:971554578191,number_of_calls:2,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;<br><br></div><div>Here are the call dumps for both users. <br></div><div><br>kamcmd> cnxcc.check_client s:971554578191<br>id:0,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:7.690000,global_max_amount:0.00000<br>id:1,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:7.690000,global_max_amount:0.00000<br>kamcmd><br>kamcmd><br>kamcmd>  cnxcc.check_client s:917044056840<br>id:0,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.00000<br>id:1,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000<br>id:2,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000<br>id:3,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000<br>id:4,confirmed:no,local_consumed_amount:14.100000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.0000<br>id:5,confirmed:no,local_consumed_amount:0.588000,global_consumed_amount:0.000000,local_max_amount:9.990000,global_max_amount:0.00000<br>kamcmd><br><br><br><br><br></div></div>