[sr-dev] git:master:d7bd8a18: core: clear branches and expose the function for a new faked msg
Daniel-Constantin Mierla
miconda at gmail.com
Fri Aug 16 12:58:31 CEST 2019
Module: kamailio
Branch: master
Commit: d7bd8a187546f132547788c47ff9a3947be49957
URL: https://github.com/kamailio/kamailio/commit/d7bd8a187546f132547788c47ff9a3947be49957
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2019-08-16T12:56:49+02:00
core: clear branches and expose the function for a new faked msg
---
Modified: src/core/fmsg.c
Modified: src/core/fmsg.h
---
Diff: https://github.com/kamailio/kamailio/commit/d7bd8a187546f132547788c47ff9a3947be49957.diff
Patch: https://github.com/kamailio/kamailio/commit/d7bd8a187546f132547788c47ff9a3947be49957.patch
---
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
More information about the sr-dev
mailing list