[SR-Users] Parsing Error in Timer Module of kamailio

Henning Westerholt hw at skalatan.de
Thu Oct 7 09:38:45 CEST 2021


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/c3629f877500373028d2c7cdefd976cddda31c15

Cheers,

Henning

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://gilawa.com<https://gilawa.com/>

From: sr-users <sr-users-bounces at lists.kamailio.org> On Behalf Of Surabhi Garg
Sent: Wednesday, October 6, 2021 9:57 AM
To: sr-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20211007/0f26918e/attachment.htm>


More information about the sr-users mailing list