<p dir="ltr">It should run on Kamailio 4.1.x. </p>
<p dir="ltr">You can git clone master and copy the cnxcc directory to your 4.1.x copy and recompile the modules. That should work. </p>
<p dir="ltr">Regards,<br>
Carlos </p>
<div class="gmail_quote">On Feb 20, 2015 10:21 AM, "Jonathan Hunter" <<a href="mailto:hunterj91@hotmail.com">hunterj91@hotmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Carlos!<div><br></div><div>Thanks for the response!</div><div><br></div><div>Whats the latest version of Cnxcc for my reference please?  And presume it runs fine with kamailio 4.1.4 ?</div><div><br></div><div>thanks</div><div><br></div><div>Jon<br><br><div><hr>Date: Fri, 20 Feb 2015 08:57:15 -0600<br>From: <a href="mailto:carlos.ruizdiaz@gmail.com" target="_blank">carlos.ruizdiaz@gmail.com</a><br>To: <a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>Subject: Re: [SR-Users] CNXCC Max Call control on Version 4.1.4<br><br><p dir="ltr">Hi Jonathan,</p>
<p dir="ltr">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. </p>
<p dir="ltr">Regards, <br>
Carlos </p>
<div>On Feb 20, 2015 8:45 AM, "Jonathan Hunter" <<a href="mailto:hunterj91@hotmail.com" target="_blank">hunterj91@hotmail.com</a>> wrote:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Hi Guys,</span></font><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">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.</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">In my configuration I set the following;</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"># -----Dialog params -----</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">modparam("dialog", "dlg_flag", 4)</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">modparam("cnxcc", "dlg_flag", 4)</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">modparam("cnxcc", "credit_check_period", 1)</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Then I look to set some parameters for outbound calls;</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">###########Set Max Call Duration for MT Call  #############</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">$var(customer) = "MTPublic";</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">$var(max_time) = $var(MTMaxCallDuration);</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">xlog("L_INFO","For setting Call Duration we have ProfileID=$var(profileIDMD) and we have  var(max_time)=$var(max_time)\n");</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">cnxcc_set_max_time("$var(customer)", "$var(max_time)");</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">xlog("L_INFO","Max Call duration set to $var(max_time) seconds\n");</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Feb 20 14:20:26 voip01 /usr/sbin/kamailio[1950]: INFO: <script>: Max Call duration set to 600 seconds</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">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</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Feb 20 14:20:35 voip01 /usr/sbin/kamailio[1960]: INFO: <script>: [74d7c02e-33ae-1233-edba-005056a48754]: call killed as Max Call Duration Expired</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">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]</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">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.</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">If I restart kamailio this clears the issue and it works fine allowing calls to run up to 600 seconds.</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Any help/comment on this would be great, is it just configuration related?</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Thanks</span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px"><br></span></font></div><div><font face="Segoe UI, Segoe UI Web Regular, Segoe UI Symbol, Helvetica Neue, BBAlpha Sans, S60 Sans, Arial, sans-serif"><span style="font-size:12.1087999343872px;line-height:17.1944961547852px">Jon</span></font></div><div><br></div>                                     </div></div>
<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" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div>
<br>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<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></div></div>                                         </div></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>