<div dir="ltr">i am not sure if this is related but, there are cases when if a user adds credit, it does not reflect on <span style="font-family:arial,sans-serif;font-size:13px">cnxcc.active_clients</span><div><font face="arial, sans-serif">after the next call. somehow, cnxcc saves the old credit and does not update it</font></div></div><div class="gmail_extra"><br clear="all"><div>Kelvin Chua</div>
<br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 10:24 PM, Carlos Ruiz Díaz <span dir="ltr"><<a href="mailto:carlos.ruizdiaz@gmail.com" target="_blank">carlos.ruizdiaz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Kelvin,<div><br></div><div>this is an interesting scenario. I will have to reproduce it myself in order to reply you properly.</div><div><br></div><div>Answering your question, yes, it should be updated to 200. Let me check ASAP.</div>
<div><br></div><div>Regards,</div><div>Carlos</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Thu, Aug 28, 2014 at 4:31 AM, Kelvin Chua <span dir="ltr"><<a href="mailto:kelchy@gmail.com" target="_blank">kelchy@gmail.com</a>></span> 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"><div dir="ltr"><div>hi carlos,</div><div><br></div><div>i have a serial forking scenario to several providers as failover. and i used cnxcc_set_max_credit to control the session credit/time.</div>
<div><br></div><div>just wanted to make sure it does what i think it should do so i made a little experiment.</div>
<div>the logic goes this way.</div><div>1. cnxcc_set_max_credit -> $100, cost per second -> $1</div><div>2. call will fail, try the next provider</div><div>3. cnxcc_set_max_credit -> $200, cost per second -> $2</div>

<div><br></div><div>what i am expecting to see is, if i do</div><div><br></div><div>kamctl kamcmd cnxcc.active_clients</div><div><br></div><div>i would see $200 as the max_amount. but in kamailio 4.1.5, i still see $100, should it</div>

<div>be updated to $200? is there an override in cnxcc_set_max_credit when called twice or after failure_route?</div><span><font color="#888888"><br clear="all"><div>Kelvin Chua</div>
</font></span></div>
<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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Carlos<div><a href="http://caruizdiaz.com" target="_blank">http://caruizdiaz.com</a></div><div><a href="http://ngvoice.com" target="_blank">http://ngvoice.com</a></div>
<div><a href="tel:%2B52%2055%203048%203303" value="+525530483303" target="_blank">+52 55 3048 3303</a></div></div>
</font></span></div>
<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>