瀏覽代碼

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 年之前
父節點
當前提交
45e6878a39
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 {
 	} else {
 		obuf.s = build_req_buf_from_sip_req(msg,
 		obuf.s = build_req_buf_from_sip_req(msg,
 				(unsigned int*)&obuf.len, &dst,
 				(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)
 	if(obuf.s == NULL)
 	{
 	{