[OpenSIPS-Users] topology hiding bug?

M S medeanwz at gmail.com
Wed Nov 18 01:23:53 EST 2020


Dear OpenSIPS development team,
I have come across a strange case that sometime when I use
topology_hiding("UD"), it makes a mistake in changing Contact field.
Scenario is:

A: (Contact: <sip:90006969 at 172.24.8.5:5060>) sends Invite to private IP of
opensips, opensips changes Contact field to: (Contact:
<sip:90006969.did.29c.2ed202e at public.ip>) and sends Invite from public IP
to B.
Then B sends 200 OK back to Opensips public IP, with correct Contact:
(Contact: <sip:90006969.did.29c.2ed202e at Bpublic.ip:5060>). so far so good.
Now Opensips sends 200 OK back to A from its private IP, and changes
Contact to:
Contact: <sip:90006969.did.29c.2ed202e.did.29c.2ed202e at 172.24.8.37>

As you see, did part is repeated twice.. and that means when A replies with:
ACK sip:90006969.did.29c.2ed202e.did.29c.2ed202e at 172.24.8.37 SIP/2.0

Opensips throws an error: ERROR:dialog:dlg_onroute: malformed route param
[29c.2ed202e.did.29c.2ed202e]

Is this a bug? I am using Opensips 3.1.0.

Thanks,
Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20201118/d14f07c3/attachment.html>


More information about the Users mailing list