[sr-dev] git:5.4:3d5f1a75: timer: extend internal static HTTP message to have one header

Daniel-Constantin Mierla miconda at gmail.com
Mon Dec 6 14:35:55 CET 2021


Module: kamailio
Branch: 5.4
Commit: 3d5f1a75a1413126532b6bed41f2e5ec7acc57fb
URL: https://github.com/kamailio/kamailio/commit/3d5f1a75a1413126532b6bed41f2e5ec7acc57fb

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-12-06T14:28:02+01:00

timer: extend internal static HTTP message to have one header

(cherry picked from commit c3629f877500373028d2c7cdefd976cddda31c15)
(cherry picked from commit a9c5f3e4d29dccda79eee8e594d4316e32196db5)

---

Modified: src/modules/timer/timer.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3d5f1a75a1413126532b6bed41f2e5ec7acc57fb.diff
Patch: https://github.com/kamailio/kamailio/commit/3d5f1a75a1413126532b6bed41f2e5ec7acc57fb.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