Module: kamailio
Branch: 5.2
Commit: 67f889bcda49ad8f99f619b495e3fa201968ad64
URL:
https://github.com/kamailio/kamailio/commit/67f889bcda49ad8f99f619b495e3fa2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2019-08-20T10:23:29+02:00
core: clear branches and expose the function for a new faked msg
(cherry picked from commit d7bd8a187546f132547788c47ff9a3947be49957)
---
Modified: src/core/fmsg.c
Modified: src/core/fmsg.h
---
Diff:
https://github.com/kamailio/kamailio/commit/67f889bcda49ad8f99f619b495e3fa2…
Patch:
https://github.com/kamailio/kamailio/commit/67f889bcda49ad8f99f619b495e3fa2…
---
diff --git a/src/core/fmsg.c b/src/core/fmsg.c
index 1450509f8c..71ea74a5e2 100644
--- a/src/core/fmsg.c
+++ b/src/core/fmsg.c
@@ -127,6 +127,7 @@ sip_msg_t* faked_msg_get_next_clear(void)
int faked_msg_get_new(sip_msg_t *fmsg)
{
+ clear_branches();
if(faked_msg_init_new(fmsg)<0) {
return -1;
}
diff --git a/src/core/fmsg.h b/src/core/fmsg.h
index 99eb9f61b3..734b4c0090 100644
--- a/src/core/fmsg.h
+++ b/src/core/fmsg.h
@@ -29,6 +29,7 @@ sip_msg_t* faked_msg_next(void);
sip_msg_t* faked_msg_get_next(void);
sip_msg_t* faked_msg_next_clear(void);
sip_msg_t* faked_msg_get_next_clear(void);
+int faked_msg_get_new(sip_msg_t *fmsg);
int faked_msg_match(sip_msg_t *tmsg);
#endif