[sr-dev] git:master: modules/textopx: Prevent msg_apply_changes() from adding the router header if path is set.

Richard Good richard.good at smilecoms.com
Mon Mar 10 13:29:38 CET 2014


Module: sip-router
Branch: master
Commit: 45e6878a398f7ba75ce253a7bfcbb66bc7a5c088
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=45e6878a398f7ba75ce253a7bfcbb66bc7a5c088

Author: Richard Good <richard.good at smilecoms.com>
Committer: Richard Good <richard.good at smilecoms.com>
Date:   Mon Mar 10 14:26:29 2014 +0200

modules/textopx: Prevent msg_apply_changes() from adding the router header if path is set.
	This avoids adding router header twice when calling msg_apply_changes

---

 modules/textopsx/textopsx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c
index 2a7273d..80469c1 100644
--- a/modules/textopsx/textopsx.c
+++ b/modules/textopsx/textopsx.c
@@ -166,7 +166,7 @@ static int msg_apply_changes_f(sip_msg_t *msg, char *str1, char *str2)
 	} else {
 		obuf.s = build_req_buf_from_sip_req(msg,
 				(unsigned int*)&obuf.len, &dst,
-				BUILD_NO_LOCAL_VIA|BUILD_NO_VIA1_UPDATE);
+				BUILD_NO_PATH|BUILD_NO_LOCAL_VIA|BUILD_NO_VIA1_UPDATE);
 	}
 	if(obuf.s == NULL)
 	{




More information about the sr-dev mailing list