[sr-dev] git:master:17c14a96: nathelper: fix call to alter_mediaip

lazedo luis.azedo at factorlusitano.com
Fri Sep 28 18:00:29 CEST 2018


Module: kamailio
Branch: master
Commit: 17c14a966ff3ba67ce858dfe424d7cdf5100d4fa
URL: https://github.com/kamailio/kamailio/commit/17c14a966ff3ba67ce858dfe424d7cdf5100d4fa

Author: lazedo <luis.azedo at factorlusitano.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2018-09-28T18:00:22+02:00

nathelper: fix call to alter_mediaip

---

Modified: src/modules/nathelper/nathelper.c

---

Diff:  https://github.com/kamailio/kamailio/commit/17c14a966ff3ba67ce858dfe424d7cdf5100d4fa.diff
Patch: https://github.com/kamailio/kamailio/commit/17c14a966ff3ba67ce858dfe424d7cdf5100d4fa.patch

---

diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c
index bb9c99767f..09b385f389 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -1529,7 +1529,7 @@ static inline int replace_sdp_ip(
 		body2.s = oldip.s + oldip.len;
 		body2.len = bodylimit - body2.s;
 		ret = alter_mediaip(
-				msg, &body1, &oldip, pf, &newip, pf, sdp_oldmediaip);
+				msg, &body2, &oldip, pf, &newip, pf, sdp_oldmediaip);
 		if(ret == -1) {
 			LM_ERR("can't alter '%s' IP\n", line);
 			return -1;




More information about the sr-dev mailing list