<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><div>Hi All,</div><div><br></div><div>Sorry further information on the below.</div><div><br></div><div>On version 4.2.0 I now have the CNXCC module trying to terminate the call and I can see in the logs;</div><div><br></div><div>Jul  8 10:04:05 voxweb1 kamailio4-2[28013]: ALERT: cnxcc [cnxcc_check.c:157]: check_calls_by_time(): [84738257-9ffa-1233-479c-2a8a2e4d8baa] call has exhausted its time. Breaking the loop</div><div>Jul  8 10:04:05 voxweb1 kamailio4-2[28013]: ERROR: cnxcc [cnxcc_mod.c:1080]: terminate_call(): Error executing dlg_end_dlg command. Return code was [404]</div><div><br></div><div><br></div><div>Now looking in the dialog hash table I see;</div><div><br></div><div> kamailio]# kamctl fifo dlg_list</div><div>dialog::  hash=2024:5750</div><div>        state:: 4</div><div>        ref_count:: 2</div><div>        timestart:: 1436349420</div><div>        timeout:: 28722377</div><div>        callid:: 84738257-9ffa-1233-479c-2a8a2e4d8baa</div><div>        from_uri:: sip:+33975182813@eseye.peering.manxtelecom.im</div><div>        from_tag:: 77XSZ5HjtBv6m</div><div>        caller_contact:: sip:Eseye@212.111.42.24:5080</div><div>        caller_cseq:: 77838646</div><div>        caller_route_set::</div><div>        caller_bind_addr:: udp:212.111.42.24:5060</div><div>        callee_bind_addr:: udp:212.111.42.24:5060</div><div>        to_uri:: sip:337917190438@RETURN.MO.ESEYE.COM;user=phone</div><div>        to_tag:: crmacSH2pU30N</div><div>        callee_contact:: sip:337917190438@213.168.250.152:5080;transport=udp</div><div>        callee_cseq:: 0</div><div>        callee_route_set::</div><div><br></div><div>And;</div><div><br></div><div>kamctl kamcmd cnxcc.active_clients</div><div>client_id:MOPublic,number_of_calls:1,concurrent_calls:1,type:0,max_amount:10,consumed_amount:533;</div><div><br></div><div>So when I manually try and kill it, it also doesnt work even though the callid looks valid in the dialog hash table;</div><div><br></div><div>kamctl kamcmd cnxcc.kill_call 84738257-9ffa-1233-479c-2a8a2e4d8baa</div><div><br></div><div>This command just doesn't return anything and cant find the callid,  is this a configuration issue on my part or are there any issues with cnxcc on 4.2.0 ?</div><div><br></div><div>All I want to achieve is to set the max time for calls.</div><div><br></div><div>All I do is set the CC_FLAG, and then dlg_manage, and Ive also tried with the DLG_FLAG set same as CC_FLAG.</div><div><br></div><div>Thanks</div><div><br></div><div>Jon</div><br><div><hr id="stopSpelling">From: hunterj91@hotmail.com<br>To: sr-users@lists.sip-router.org<br>Date: Tue, 7 Jul 2015 18:29:30 +0000<br>Subject: [SR-Users] CNXCC cnxcc_set_max_time Version 4.2<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi Guys,<div><br></div><div>I have just moved from kamailio 4.1, to 4.2 and have installed via git version 4.2</div><div><br></div><div>I am testing with the function cnxcc_set_max_time, as I want to set the maximum call duration.</div><div><br></div><div>Having moved to 4.2, i cant get the module to terminate the call.</div><div><br></div><div>I have set dlg_flag, and cc_flag, following examples on the wiki but I cant get it to work.</div><div><br></div><div>Does anyone have any suggestions for me please?</div><div><br></div><div>My same code on 4.1 works ok.</div><div><br></div><div>Thanks</div><div><br></div><div>Jon</div>                                     </div>
<br>_______________________________________________
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</div>                                         </div></body>
</html>