Module: kamailio Branch: master Commit: 8e0b2e4b6450fa50bd573fa013dc888aaaccd2bf URL: https://github.com/kamailio/kamailio/commit/8e0b2e4b6450fa50bd573fa013dc888a...
Author: codenot codenot@msn.com Committer: Xenofon Karamanos 22965395+xkaraman@users.noreply.github.com Date: 2024-06-04T13:38:17+03:00
nathelper: fixed handle_ruri_alias_mode(1) cannot proper handle multi alias
---
Modified: src/modules/nathelper/nathelper.c
---
Diff: https://github.com/kamailio/kamailio/commit/8e0b2e4b6450fa50bd573fa013dc888a... Patch: https://github.com/kamailio/kamailio/commit/8e0b2e4b6450fa50bd573fa013dc888a...
---
diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c index 41985a8b3f8..467c88a6a25 100644 --- a/src/modules/nathelper/nathelper.c +++ b/src/modules/nathelper/nathelper.c @@ -1160,8 +1160,6 @@ static int ki_handle_ruri_alias_mode(struct sip_msg *msg, int mode) /* use first alias parameter */ break; } - rest = rest + _ksr_contact_alias.len; - rest_len = rest_len - _ksr_contact_alias.len; } sep = memchr(rest, 59 /* ; */, rest_len); if(sep == NULL) {