[OpenSIPS-Users] NAT & RTPProxy
callum.guy at x-on.co.uk
Wed Apr 19 10:06:41 UTC 2023
Using an RTP proxy is a good approach, you'll need to set it up in
bridge mode so that it is aware of the internal and external addresses
so that it can present the public IP to the client and private to the
You probably don't need fix_nated_sdp as rtpproxy/rtpengine will do
that for you, you'll just need to tell it which address to use which
differs for each product.
On Wed, 19 Apr 2023 at 06:39, Gavin Murphy via Users
<users at lists.opensips.org> wrote:
> I'm trying to set up an instance of opensips to support a testing SIP phone calling into my simulated network. The client is running from a mobile phone. The connection from the client comes in from the public network, but the client sees its own IP as private (192.0.0.2). My test network is running on virtual machines on my laptop, and is behind a NATed home router, so all of the VMs are in private IP space (192.168.x.x). It looks something like this:
> client -> mobile network (NAT) -> home router (NAT) -> opensips -> application server
> I am having trouble relaying the media from the network to the client. I have made various attempts of using the rtpproxy and the matmodule, but nothing has been successful so far. When using rtpproxy it writes the SDP going back to the client in the 183 with the internal IP. But if I just use fix_nated_sdp() the media doesn't go through the proxy server. If I try to use both (fix_nated_sdp() followed by rtpproxy_answer()), rtpproxy doesn't properly re-write the SDP (it ends up with a concatenation of the the private and the public advertised address.
> Anyone have any advice or experience with this kind of setup?
> Users mailing list
> Users at lists.opensips.org
*0333 332 0000 | x-on.co.uk <https://www.x-on.co.uk> | **
<https://twitter.com/xonuk> ** | **Practice Index Reviews
*Our new office address: 22 Riduna
Park, Melton IP12 1QT.*
is a trading name of Storacall Technology Ltd
a limited company registered in
England and Wales.
Registered Office :
Glebe Farm, Down Street, Dummer, Basingstoke, Hampshire, England RG25 2AD.
Company Registration No. 2578478.
The information in this e-mail is
confidential and for use by the addressee(s)
only. If you are not the
intended recipient, please notify X-on immediately on +44(0)333 332 0000
and delete the
message from your computer. If you are not a named addressee
you must not use,
disclose, disseminate, distribute, copy, print or reply
to this email. Views
or opinions expressed by an individual
email may not necessarily
reflect the views of X-on or its associated
companies. Although X-on routinely
screens for viruses, addressees should
scan this email and any attachments
viruses. X-on makes no
representation or warranty as to the absence of viruses
in this email or
More information about the Users