Module: kamailio
Branch: 5.1
Commit: ba9ee6de14b83f57cf2bb4eef11f229e5f8b3a08
URL:
https://github.com/kamailio/kamailio/commit/ba9ee6de14b83f57cf2bb4eef11f229…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2018-09-28T17:02:32+01:00
nathelper: fix call to alter_mediaip
(cherry picked from commit 17c14a966ff3ba67ce858dfe424d7cdf5100d4fa)
---
Modified: src/modules/nathelper/nathelper.c
---
Diff:
https://github.com/kamailio/kamailio/commit/ba9ee6de14b83f57cf2bb4eef11f229…
Patch:
https://github.com/kamailio/kamailio/commit/ba9ee6de14b83f57cf2bb4eef11f229…
---
diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c
index 3fa2b6c061..e5ee5a53d3 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -1531,7 +1531,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;