Module: kamailio
Branch: 5.3
Commit: cfaf76db114ff10005ee37ce33aa05b4b24116fd
URL:
https://github.com/kamailio/kamailio/commit/cfaf76db114ff10005ee37ce33aa05b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-12-06T14:40:52+01:00
timer: extend internal static HTTP message to have one header
(cherry picked from commit c3629f877500373028d2c7cdefd976cddda31c15)
(cherry picked from commit a9c5f3e4d29dccda79eee8e594d4316e32196db5)
(cherry picked from commit 3d5f1a75a1413126532b6bed41f2e5ec7acc57fb)
---
Modified: src/modules/timer/timer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cfaf76db114ff10005ee37ce33aa05b…
Patch:
https://github.com/kamailio/kamailio/commit/cfaf76db114ff10005ee37ce33aa05b…
---
diff --git a/src/modules/timer/timer.c b/src/modules/timer/timer.c
index 9880a8420b0..224a6bed572 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;