Преглед изворни кода

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