<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
this option is added after 4.4.x . <span style="font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255); display: inline !important">
Sorry that </span>I looked wrong branch.  I tested it on new versions and it is working.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Good luck.</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Javier Valencia <jv@voiper.es><br>
<b>Sent:</b> Friday, January 18, 2019 11:07 AM<br>
<b>To:</b> YASIN CANER; Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] event_route[usrloc:contact-expired]</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans">No,</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans"><br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans">It's a hidden feature? I can't see in docs.</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans"><br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans">I made the changes, but Kamailio (as expected) don't start</font></p>
<blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;"><tt>ERROR: <core> [modparam.c:141]: set_mod_param_regex(): parameter <event_callback> of type <1> not found in module <registrar></tt><font face="Fira Sans"><br>
</font></p>
</blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans">Best regards, Javier Valencia.</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><font face="Fira Sans"></font><br>
</p>
<div class="x_moz-cite-prefix">El 18/1/19 a las 6:46, YASIN CANER escribió:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Could you try to set parameter on your test environment?</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<pre style="font-family:monospace; background-color:rgb(252,255,252); border:1px solid rgb(153,204,204); padding-left:15pt; overflow:auto; border-radius:2.5px; font-size:15px">modparam("registrar", "<span style="color:rgb(3,47,98); font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px; background-color:rgb(230,255,237); display:inline!important">event_callback</span>", "<tt style="background-color:rgb(255,255,255); color:inherit; font-size:inherit; font-style:inherit; font-variant-ligatures:inherit; font-variant-caps:inherit; font-weight:inherit"><span style="color:rgb(3,47,98); font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace; font-size:12px; background-color:rgb(255,255,255); display:inline!important">usrloc:contact-expired</span></tt><span style="font-family:monospace; font-size:15px; color:rgb(0,0,0)">")</span></pre>
Cheers</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yasin CANER</div>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Javier Valencia
<a class="x_moz-txt-link-rfc2396E" href="mailto:jv@voiper.es"><jv@voiper.es></a><br>
<b>Sent:</b> Thursday, January 17, 2019 6:51 PM<br>
<b>To:</b> YASIN CANER; Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] event_route[usrloc:contact-expired]</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
Hi Yasin.</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
I change debug from 2 to 3 and was turn crazy. But when debug=2 I can see other L_INFO entries.</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
The problem it's this event_route it's not called.<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
Best regards</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
Javier Valencia</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<br>
</p>
<div class="x_x_moz-cite-prefix">El 17/1/19 a las 16:37, YASIN CANER escribió:<br>
</div>
<blockquote type="cite">
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
could you check debug level is enough to write logs? Probably it is debug=2</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<a href="https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages" id="LPlnk419167">https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages</a><br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Best Regards</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Yasin CANER</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="LPBorder_GTaHR0cHM6Ly93d3cua2FtYWlsaW8ub3JnL2Rva3V3aWtpL2Rva3UucGhwL3R1dG9yaWFsczpkZWJ1Zy1zeXNsb2ctbWVzc2FnZXM." class="x_x_LPBorder966387" style="width:100%; margin-top:16px; margin-bottom:16px; max-width:800px; min-width:424px">
<table id="LPContainer966387" role="presentation" style="padding:12px 36px 12px 12px; width:100%; border-width:1px; border-style:solid; border-color:rgb(200,200,200); border-radius:2px">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td style="width:100%">
<div id="LPTitle966387" style=""><a target="_blank" id="LPUrlAnchor966387" href="https://www.kamailio.org/dokuwiki/doku.php/tutorials:debug-syslog-messages" style="text-decoration:none">tutorials:debug-syslog-messages - Kamailio (OpenSER) Wiki</a></div>
<div id="LPDescription966387" style="">Authors of initial tutorial: Daniel-Constantin Mierla <miconda (at) gmail.com> Elena-Ramona Modroiu <ramona (at) asipto.com> Abstract Tutorial about how to print debug and syslog messages with Kamailio (OpenSER) SIP Server.</div>
<div id="LPMetadata966387" style=""><a class="x_x_moz-txt-link-abbreviated" href="http://www.kamailio.org">www.kamailio.org</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> sr-users
<a class="x_x_moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org">
<sr-users-bounces@lists.kamailio.org></a> on behalf of Javier Valencia <a class="x_x_moz-txt-link-rfc2396E" href="mailto:jv@voiper.es">
<jv@voiper.es></a><br>
<b>Sent:</b> Thursday, January 17, 2019 6:33 PM<br>
<b>To:</b> <a class="x_x_moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">
sr-users@lists.kamailio.org</a><br>
<b>Subject:</b> [SR-Users] event_route[usrloc:contact-expired]</font>
<div> </div>
</div>
<div style="background-color:#FFFFFF">
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">Hi there!<br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">I'm using Kamailio 4.4.3, and I add this code to my Kamailio:</font></p>
<blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<tt>event_route[usrloc:contact-expired] {</tt><tt><br>
</tt><tt><br>
</tt><tt>    xlog("L_INFO", "EXPIRED CONTACT START\n");</tt><tt><br>
</tt><tt>    xlog("L_INFO", "EXPIRED CONTACT for $ulc(exp=>aor)\n");</tt><tt><br>
</tt><tt>    xlog("L_INFO", "EXPIRED CONTACT END\n");</tt><tt><br>
</tt><tt>}</tt><font face="Fira Sans"><br>
</font></p>
</blockquote>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">I can't see this entries in the log.</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">I read many times the docs and code, but I don't understand why it's not working.</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">I have two phone with 60 and 300 expiry seconds, if then expire, when it's event_route[usrloc:contact-expired] triggered?<br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">Why this event route it's named as usrloc but it's documented in registrar module?</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">I need to provide more info about?<br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans">Thank you very much.</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans"><br>
</font></p>
<p style="margin-top: 0px; margin-bottom: 0px;margin-top:0px; margin-bottom:0px">
<font face="Fira Sans"><br>
</font></p>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</body>
</html>