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

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 5 16:38:21 CEST 2021


Module: kamailio
Branch: 5.5
Commit: a9c5f3e4d29dccda79eee8e594d4316e32196db5
URL: https://github.com/kamailio/kamailio/commit/a9c5f3e4d29dccda79eee8e594d4316e32196db5

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

timer: extend internal static HTTP message to have one header

(cherry picked from commit c3629f877500373028d2c7cdefd976cddda31c15)

---

Modified: src/modules/timer/timer.c

---

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