hi,
i have kamailio+rtpengine acting as a SBC (private/public net interfaces)
kamailio 5.4.x/rtpengine 9.x/centos 7
using TOPOH module
modparam("topoh", "mask_ip", "public_IP")
i'm rewriting IPs in INVITE like this
$var(ruri) = "sip:" + $(ru{re.subst,/private_IP/public_IP/g}); $ru = $(ru{re.subst,/private_IP/public_IP/g}); $tu = $(tu{re.subst,/private_IP/public_IP/g}); $fu = $(fu{re.subst,/remote_private_IP/public_IP/g}); the same for route[WITHINDIALOG] and INVITE
i have problem with session timers using re-INVITE method
in the first INVITE SDP is correct
c=IN IP4 public_IP
but
in the reinvite is
c=IN IP4 private_IP
and remote SBC drop with 422 because SDP is changed and SDP version is not.
any tips / best practice?
thanks
Marek
Hi,
this might be a long shot but perhaps sdpops module could help you out with the problem. Have you tried it?
Regards, Jan
On 29. 09. 20 13:05, marek wrote:
hi,
i have kamailio+rtpengine acting as a SBC (private/public net interfaces)
kamailio 5.4.x/rtpengine 9.x/centos 7
using TOPOH module
modparam("topoh", "mask_ip", "public_IP")
i'm rewriting IPs in INVITE like this
$var(ruri) = "sip:" + $(ru{re.subst,/private_IP/public_IP/g}); $ru = $(ru{re.subst,/private_IP/public_IP/g}); $tu = $(tu{re.subst,/private_IP/public_IP/g}); $fu = $(fu{re.subst,/remote_private_IP/public_IP/g}); the same for route[WITHINDIALOG] and INVITE
i have problem with session timers using re-INVITE method
in the first INVITE SDP is correct
c=IN IP4 public_IP
but
in the reinvite is
c=IN IP4 private_IP
and remote SBC drop with 422 because SDP is changed and SDP version is not.
any tips / best practice?
thanks
Marek
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
it was missing
rtpengine_manage();
in
route[WITHINDIALOG]
Dne 01/10/2020 v 10:21 Jan Rozhon napsal(a):
Hi,
this might be a long shot but perhaps sdpops module could help you out with the problem. Have you tried it?
Regards, Jan
On 29. 09. 20 13:05, marek wrote:
hi,
i have kamailio+rtpengine acting as a SBC (private/public net interfaces)
kamailio 5.4.x/rtpengine 9.x/centos 7
using TOPOH module
modparam("topoh", "mask_ip", "public_IP")
i'm rewriting IPs in INVITE like this
$var(ruri) = "sip:" + $(ru{re.subst,/private_IP/public_IP/g}); $ru = $(ru{re.subst,/private_IP/public_IP/g}); $tu = $(tu{re.subst,/private_IP/public_IP/g}); $fu = $(fu{re.subst,/remote_private_IP/public_IP/g}); the same for route[WITHINDIALOG] and INVITE
i have problem with session timers using re-INVITE method
in the first INVITE SDP is correct
c=IN IP4 public_IP
but
in the reinvite is
c=IN IP4 private_IP
and remote SBC drop with 422 because SDP is changed and SDP version is not.
any tips / best practice?
thanks
Marek
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users