<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi Henning,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for the update. That is really helpful.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Also, I was trying to use <span style="background-color: rgb(255, 255, 0);">rtimer</span> as well which also provide similar functionality like
<span style="background-color: rgb(255, 255, 0);">timer</span> module. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So, would like to know whether there is any major difference in between these modules (rtimer and timer). </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Or if there are any pros and cons of using one over the other. Then could you please highlight those as well.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div id="Signature">
<div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="color:rgb(0,111,201)">Surabhi Garg</span></p>
<p style="margin-top: 0px; margin-bottom: 0px;"><span style="color:rgb(0,111,201)">Mobile - 91 783 888 7523 | Skype - surabhi.garg9</span><br>
</p>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Henning Westerholt <hw@skalatan.de><br>
<b>Sent:</b> Thursday, October 7, 2021 1:08 PM<br>
<b>To:</b> Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org><br>
<b>Cc:</b> Surabhi Garg <surabhi.garg@outlook.com><br>
<b>Subject:</b> RE: Parsing Error in Timer Module of kamailio</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Menlo}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
p.x_p1, li.x_p1, div.x_p1
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_s1
        {}
span.x_s2
        {}
span.x_s3
        {}
span.x_s4
        {}
p.x_p2, li.x_p2, div.x_p2
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_apple-converted-space
        {}
span.x_s5
        {}
span.x_s6
        {}
span.x_E-MailFormatvorlage28
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 2.0cm 70.85pt}
div.x_WordSection1
        {}
-->
</style>
<div lang="DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="">Hello,</span></p>
<p class="x_MsoNormal"><span style=""> </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">this is a known issue, reported some days ago. A patch has been integrated into git master and also 5.5.x version branch. It will be part of the next minor release in 5.5.x.</span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<p class="x_MsoNormal"><a href="https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976cddda31c15"><span lang="EN-GB">https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976cddda31c15</span></a></p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Cheers,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Henning<span lang="EN-GB" style=""></span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<p class="x_MsoNormal"><span lang="EN-GB" style="">-- </span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Henning Westerholt – </span><span style=""><a href="https://skalatan.de/blog/"><span lang="EN-GB" style="color:#0563C1">https://skalatan.de/blog/</span></a></span><span lang="EN-GB" style=""></span></p>
<p class="x_MsoNormal"><span lang="EN-GB" style="">Kamailio services – </span><span style=""><a href="https://gilawa.com/"><span lang="EN-GB" style="color:#0563C1">https://gilawa.com</span></a></span><span lang="EN-GB" style=""></span></p>
</div>
<p class="x_MsoNormal"><span lang="EN-GB" style=""> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="x_MsoNormal" style="margin-left:35.4pt"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org>
<b>On Behalf Of </b>Surabhi Garg<br>
<b>Sent:</b> Wednesday, October 6, 2021 9:57 AM<br>
<b>To:</b> sr-users@lists.kamailio.org<br>
<b>Subject:</b> [SR-Users] Parsing Error in Timer Module of kamailio</p>
</div>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Hi Team,</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Greetings!</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">I am trying to use Timer Module of Kamailio to keep calling particular route at particular time interval.</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black">Here is the snippet of my config:</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_p1" style="margin-left:35.4pt"><span class="x_s1"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">loadmodule "</span></span><span class="x_s2"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">timer</span></span><span class="x_s1"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">.so"</span></span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div>
<p class="x_p1" style="margin-left:35.4pt"><span class="x_s1"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">modparam("timer", "declare_timer", "MYTIMER=</span></span><span class="x_s2"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#850002; background:yellow">SHUTDOWN</span></span><span class="x_s3"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#B42419; background:yellow">,5000,slow,enable")</span></span><span class="x_s4"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow">;</span></span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
<p class="x_p1" style="margin-left:35.4pt"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
<p class="x_p1" style="margin-left:35.4pt"><span class="x_s1"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">route</span></span><span class="x_s2"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#2FB41D; background:yellow">[</span></span><span class="x_s3"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#149902; background:yellow">SHUTDOWN</span></span><span class="x_s2"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#2FB41D; background:yellow">]</span></span><span class="x_s1"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">
 {</span></span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#149902"></span></p>
<p class="x_p2" style="margin-left:35.4pt"><span class="x_apple-converted-space"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">       
</span></span><span class="x_s4"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black; background:yellow">xlog("system shutdown: $sht(graceful_shutdown=</span></span><span class="x_s5"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#B42419; background:yellow">>shutdown)\n")</span></span><span class="x_s6"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow">;</span></span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt">} </p>
<p class="x_p1" style="margin-left:35.4pt"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
<p class="x_p1" style="margin-left:35.4pt"><span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif; color:black"></span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:8.5pt; font-family:"Menlo",serif"> </span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:12.0pt; color:black; background:white">But after restarting the Kamailio, I keep on getting parsing errors in every 5 sec and my route "SHUTDOWN" never get called.</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:12.0pt; color:black; background:white"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
Which means timer is getting called in every 5 sec but not able to call the route.</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<br>
<br>
</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
Could you please help me with this why these parsing errors coming?</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
am I missing some arguments here?</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<br>
<br>
</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
Kamailio Version: 5.5.X.</p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
 </p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:12.0pt; color:black; background:white"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:8.5pt; font-family:"Menlo",serif"> </span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:12.0pt; color:black; background:white">Errors:</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<blockquote style="border:none #C8C8C8 1.0pt; border-left:solid #C8C8C8 2.25pt; padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt; margin-top:5.0pt; margin-bottom:5.0pt">
<p class="x_MsoNormal" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="color:#400BD9">Sep 23 15:29:31 N1VL-PA-SIP01 /usr/local/kamailio-5.5/sbin/kamailio[9907]: ERROR: <core> [core/parser/msg_parser.c:748]: parse_msg(): ERROR: parse_msg: message=<GET /timer HTTP/0.9#012#012>
</span></p>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="color:#400BD9">Sep 23 15:29:31 N1VL-PA-SIP01 /usr/local/kamailio-5.5/sbin/kamailio[9907]: ERROR: timer [timer.c:204]: timer_handler(): parse msg failed</span></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="color:#400BD9">Sep 23 15:29:36 N1VL-PA-SIP01 /usr/local/kamailio-5.5/sbin/kamailio[9907]: ERROR: <core> [core/parser/msg_parser.c:748]: parse_msg(): ERROR: parse_msg: message=<GET /timer HTTP/0.9#012#012></span></p>
</div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="color:#400BD9">Sep 23 15:29:36 N1VL-PA-SIP01 /usr/local/kamailio-5.5/sbin/kamailio[9907]: ERROR: timer [timer.c:204]: timer_handler(): parse msg failed</span><span style="color:#666666"></span></p>
</blockquote>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<p class="x_p1" style="margin-left:35.4pt; font-variant-caps:normal; font-variant-numeric:normal; font-variant-east-asian:normal; font-stretch:normal">
<span style="font-size:8.5pt; font-family:"Menlo",serif; color:#400BD9; background:yellow"><br>
<br>
</span><span style="font-size:8.5pt; font-family:"Menlo",serif"></span></p>
<p class="x_MsoNormal" style="margin-left:35.4pt"><b><span style="color:black">Also, in place of timer module I tried using rtimer module as well which is also giving me similar results as per my requirement. </span></b></p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"> </p>
</div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><b><span style="color:black; background:white">But Could you please help me with th</span></b><b><span style="color:black; background:yellow">e pros and cons of both the modules timer and rtimer. </span></b><b>Any
 thoughts on this would be appreciated </b></p>
</div>
<div>
<div>
<p class="x_MsoNormal" style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
</div>
<div id="x_Signature">
<div>
<div id="x_divtagdefaultwrapper">
<p style="margin-left:35.4pt"><span style="font-size:12.0pt; color:black"> </span></p>
<p style="margin-left:35.4pt"><span style="font-size:12.0pt; color:#006FC9">Surabhi Garg</span><span style="font-size:12.0pt; color:black"></span></p>
<p style="margin-left:35.4pt"><span style="font-size:12.0pt; color:#006FC9">Mobile - 91 783 888 7523</span><span style="font-size:12.0pt; color:black"></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>