[SR-Users] CNXCC lock

Kelvin Chua kelchy at gmail.com
Tue Jul 28 07:16:36 CEST 2015


already looked into it.
let's see if i get the time to create a patch for this

Kelvin Chua

On Thu, Jul 23, 2015 at 3:28 PM, Dirk Teurlings - SIGNET B.V. <
dteurlings at signet.nl> wrote:

> 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 at 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 at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150728/b189c021/attachment.html>


More information about the sr-users mailing list