<div dir="ltr">already looked into it.<div>let's see if i get the time to create a patch for this</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">Kelvin Chua</div></div>
<br><div class="gmail_quote">On Thu, Jul 23, 2015 at 3:28 PM, Dirk Teurlings - SIGNET B.V. <span dir="ltr"><<a href="mailto:dteurlings@signet.nl" target="_blank">dteurlings@signet.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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)<br>
<br>
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.<br>
<br>
Cheers,<br>
Dirk<div><div class="h5"><br>
<br>
On 22-07-15 08:55, Kelvin Chua wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
after a call exhausted credits, the next call will fail with a timeout.<br>
found out it gets stuck in cnxcc_mod.c line 1137<br>
<br>
static call_t *__alloc_new_call_by_money(credit_data_t *credit_data,<br>
struct sip_msg *msg,<br>
                                         double credit, double<br>
cost_per_second, int initial_pulse, int final_pulse) {<br>
         call_t *call = NULL;<br>
         lock_get(&credit_data->lock);<br>
<br>
... the next lines will never be executed<br>
<br>
<br>
<br>
<br>
Kelvin Chua<br>
<br>
<br></div></div>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br>
</blockquote>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br></div>