Hi Kelvin,

probably the dialog matching parameter is wrong, or something in the parameter configuration of cnxcc. 

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.

Check this example [1], it may help you.

[1] http://caruizdiaz.com/2014/04/04/cnxcc-prepaid-module-workshop-kamailio-world/

Regards,




On Tue, Apr 8, 2014 at 3:04 AM, Kelvin Chua <kelchy@gmail.com> wrote:
i am trying to use cnxcc for the first time.

kamctl kamcmd cnxcc.active_clients

client_id:6,number_of_calls:1,concurrent_calls:0,type:1,max_amount:0.000000,consumed_amount:0.000000;

i don't think this is correct, seems like the dialog is not disengaging after i hang up.
i created dialogs alongside cnxcc just to compare, all dialogs were disengaged.
is this an expected behavior?

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.


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




--
Carlos
http://caruizdiaz.com
http://ngvoice.com
+595981146623