Although we also use CNXCC I can't confirm this bug, mainly because we only fire up CNXCC from routes when the user still has credits (controlled and checked by MySQL using transactions)
As far as the lock_get goes, look into the cnxcc_check.c to find out what gets released when the user overflows, you might be able to work out a patch.
Cheers,
Dirk
On 22-07-15 08:55, Kelvin Chua wrote:
_______________________________________________after a call exhausted credits, the next call will fail with a timeout.
found out it gets stuck in cnxcc_mod.c line 1137
static call_t *__alloc_new_call_by_money(credit_data_t *credit_data,
struct sip_msg *msg,
double credit, double
cost_per_second, int initial_pulse, int final_pulse) {
call_t *call = NULL;
lock_get(&credit_data->lock);
... the next lines will never be executed
Kelvin Chua
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users