[sr-dev] git:master:c3629f87: timer: extend internal static HTTP message to have one header

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 5 14:26:36 CEST 2021

Module: kamailio
Branch: master
Commit: c3629f877500373028d2c7cdefd976cddda31c15
URL: https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976cddda31c15

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-10-05T14:26:30+02:00

timer: extend internal static HTTP message to have one header


Modified: src/modules/timer/timer.c


Diff:  https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976cddda31c15.diff
Patch: https://github.com/kamailio/kamailio/commit/c3629f877500373028d2c7cdefd976cddda31c15.patch


diff --git a/src/modules/timer/timer.c b/src/modules/timer/timer.c
index 9880a8420b..224a6bed57 100644
--- a/src/modules/timer/timer.c
+++ b/src/modules/timer/timer.c
@@ -159,7 +159,7 @@ static unsigned int timer_msg_no = 0;
 static ticks_t timer_handler(ticks_t ticks, struct timer_ln* tl, void* data)
 	/*?min length of first line of message is 16 char!?*/
-#define MSG "GET /timer HTTP/0.9\n\n"
+#define MSG "GET /timer HTTP/0.9\r\nUser-Agent: internal\r\n\r\n"
 	sip_msg_t* msg;
 	timer_action_t *a;
 	run_act_ctx_t ra_ctx;

More information about the sr-dev mailing list