[SR-Users] CNXCC Max Call control on Version 4.1.4

Carlos Ruiz Díaz carlos.ruizdiaz at gmail.com
Fri Feb 20 15:57:15 CET 2015


Hi Jonathan,

Cnxcc was heavily updated a couple of months ago, so I suggest you update
your copy and let me know if the update fixes this bug.

Regards,
Carlos
On Feb 20, 2015 8:45 AM, "Jonathan Hunter" <hunterj91 at hotmail.com> wrote:

> Hi Guys,
>
> Using kamailio Version 4.1.4 on Centos 6.5 I have an issue when using
> cnxcc to control max call duration for all outbound calls.
>
> In my configuration I set the following;
>
> # -----Dialog params -----
> modparam("dialog", "dlg_flag", 4)
> modparam("cnxcc", "dlg_flag", 4)
> modparam("cnxcc", "credit_check_period", 1)
>
> Then I look to set some parameters for outbound calls;
>
> ###########Set Max Call Duration for MT Call  #############
>
> $var(customer) = "MTPublic";
> $var(max_time) = $var(MTMaxCallDuration);
> xlog("L_INFO","For setting Call Duration we have
> ProfileID=$var(profileIDMD) and we have  var(max_time)=$var(max_time)\n");
> cnxcc_set_max_time("$var(customer)", "$var(max_time)");
> xlog("L_INFO","Max Call duration set to $var(max_time) seconds\n");
>
>
>
> Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: <script>: Max Call
> duration set to 600 seconds
> Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ALERT: cnxcc
> [cnxcc_check.c:157]: check_calls_by_time():
> [74d7c02e-33ae-1233-edba-005056a48754] call has exhausted its time.
> Breaking the loop
> Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: <script>:
> [74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration
> Expired
> Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: ERROR: cnxcc
> [cnxcc_mod.c:1068]: terminate_call(): Error executing dlg_end_dlg command.
> Return code was [404]
>
>
>
> Now as you can see, as soon as the Called party answers, the cnxcc module
> drops the call stating that Max Call duration has expired, however it was
> set to 600 seconds.
>
> If I restart kamailio this clears the issue and it works fine allowing
> calls to run up to 600 seconds.
>
> Any help/comment on this would be great, is it just configuration related?
>
> Thanks
>
> Jon
>
>
> _______________________________________________
> 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/20150220/766722ce/attachment.html>


More information about the sr-users mailing list