Module: kamailio
Branch: master
Commit: 044cdefcadf5c7949945544dce30becb2d84c56e
URL:
https://github.com/kamailio/kamailio/commit/044cdefcadf5c7949945544dce30bec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-10-19T08:20:54+02:00
core: fake msg - added sip schema to From/To URIs
---
Modified: src/core/fmsg.c
---
Diff:
https://github.com/kamailio/kamailio/commit/044cdefcadf5c7949945544dce30bec…
Patch:
https://github.com/kamailio/kamailio/commit/044cdefcadf5c7949945544dce30bec…
---
diff --git a/src/core/fmsg.c b/src/core/fmsg.c
index fa948f4bbe..9a84954f0b 100644
--- a/src/core/fmsg.c
+++ b/src/core/fmsg.c
@@ -28,7 +28,7 @@
#include "fmsg.h"
-#define FAKED_SIP_MSG "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP
127.0.0.1\r\nFrom: <you(a)kamailio.org>;tag=123\r\nTo\r\nTo:
<you(a)kamailio.org>\r\nCall-IDall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length:
0\r\n\r\n"
+#define FAKED_SIP_MSG "OPTIONS sip:you@kamailio.org SIP/2.0\r\nVia: SIP/2.0/UDP
127.0.0.1\r\nFrom: <sip:you@kamailio.org>;tag=123\r\nTo:
<sip:you@kamailio.org>\r\nCall-ID: 123\r\nCSeq: 1 OPTIONS\r\nContent-Length:
0\r\n\r\n"
#define FAKED_SIP_MSG_LEN (sizeof(FAKED_SIP_MSG)-1)
static char _faked_sip_buf[FAKED_SIP_MSG_LEN+1];
static struct sip_msg _faked_msg;