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

Surabhi Garg surabhi.garg at outlook.com
Wed Oct 6 09:57:24 CEST 2021


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/20211006/4ebdf6c1/attachment.htm>


More information about the sr-users mailing list