소스 검색

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