<div dir="ltr">Hi Kelvin,<div><br></div><div>probably the dialog matching parameter is wrong, or something in the parameter configuration of cnxcc. </div><div><br></div><div>The value of max_amount is 0, because the call wasn't established or was established and cnxcc couldn't detect it  (probably because of the dlg matching, as I mentioned). It will retain this value for as long as the call is in the "early" state.</div>
<div><br></div><div>Check this example [1], it may help you.</div><div><br></div><div>[1] <a href="http://caruizdiaz.com/2014/04/04/cnxcc-prepaid-module-workshop-kamailio-world/">http://caruizdiaz.com/2014/04/04/cnxcc-prepaid-module-workshop-kamailio-world/</a></div>
<div><br></div><div>Regards,</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 8, 2014 at 3:04 AM, Kelvin Chua <span dir="ltr"><<a href="mailto:kelchy@gmail.com" target="_blank">kelchy@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"><div>i am trying to use cnxcc for the first time.</div><div><br></div><div><div>kamctl kamcmd cnxcc.active_clients</div>
<div><br></div><div>client_id:6,number_of_calls:1,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;</div>
</div><div><br></div><div>i don't think this is correct, seems like the dialog is not disengaging after i hang up.</div><div>i created dialogs alongside cnxcc just to compare, all dialogs were disengaged.</div><div>is this an expected behavior?</div>

<div><br></div><div>It's also weird that the max_amount is 0 while i checked that there is a value for credit being passed as an argument.</div><span class="HOEnZb"><font color="#888888"><div><br></div><br clear="all">
<div>Kelvin Chua</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><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>+595981146623</div></div>
</div>