Browse Source

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

Richard Good 11 years ago
parent
commit
45e6878a39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/textopsx/textopsx.c

+ 1 - 1
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)
 	{