Hi Henning,
Thanks for the update. That is really helpful.
Also, I was trying to use rtimer as well which also provide similar functionality like
timer module.
So, would like to know whether there is any major difference in between these modules
(rtimer and timer).
Or if there are any pros and cons of using one over the other. Then could you please
highlight those as well.
Surabhi Garg
Mobile - 91 783 888 7523 | Skype - surabhi.garg9
________________________________
From: Henning Westerholt <hw(a)skalatan.de>
Sent: Thursday, October 7, 2021 1:08 PM
To: Kamailio (SER) - Users Mailing List <sr-users(a)lists.kamailio.org>
Cc: Surabhi Garg <surabhi.garg(a)outlook.com>
Subject: RE: Parsing Error in Timer Module of kamailio
Hello,
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.
https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976c…
Cheers,
Henning
--
Henning Westerholt –
https://skalatan.de/blog/
Kamailio services –
https://gilawa.com<https://gilawa.com/>
From: sr-users <sr-users-bounces(a)lists.kamailio.org> On Behalf Of Surabhi Garg
Sent: Wednesday, October 6, 2021 9:57 AM
To: sr-users(a)lists.kamailio.org
Subject: [SR-Users] Parsing Error in Timer Module of kamailio
Hi Team,
Greetings!
I am trying to use Timer Module of Kamailio to keep calling particular route at particular
time interval.
Here is the snippet of my config:
loadmodule "timer.so"
modparam("timer", "declare_timer",
"MYTIMER=SHUTDOWN,5000,slow,enable");
route[SHUTDOWN] {
xlog("system shutdown: $sht(graceful_shutdown=>shutdown)\n");
}
But after restarting the Kamailio, I keep on getting parsing errors in every 5 sec and my
route "SHUTDOWN" never get called.
Which means timer is getting called in every 5 sec but not able to call the route.
Could you please help me with this why these parsing errors coming?
am I missing some arguments here?
Kamailio Version: 5.5.X.
Errors:
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>
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
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>
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
Also, in place of timer module I tried using rtimer module as well which is also giving me
similar results as per my requirement.
But Could you please help me with the pros and cons of both the modules timer and rtimer.
Any thoughts on this would be appreciated
Surabhi Garg
Mobile - 91 783 888 7523