Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
45e6878a39
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
 	{