[OpenSIPS-Users] OpenSIPS 3.1, mid_registrar and NAT handling

Mark Allen mark at allenclan.co.uk
Mon Jan 18 15:57:08 EST 2021

Our setup...

External UAC  192.168.x.x
Router        5.x.x.x
Firewall      46.x.x.x maps ports
  |           directly to
OpenSIPS      192.168.x.x      Mid-registrar and Mediaproxy
Asterisk      192.168.x.x

Current situation:
- UAC can call destination registered on Asterisk on local n/w
- UAC registration "appears" to work via Mid-Registrar with AOR throttling
- Destination extension rings and can pick up call
- Audio works both ways (though drops after about 60 seconds)


OPTIONS coming from Asterisk ends up being directed to the local IP address
at the UAC end (i.e. instead of going out over the internet it tries to use
the end destination local IP address following mid_registrar_lookup()).

Despite the UAC extension appearing to be registered on Asterisk, when I
call is placed to it, it immediately goes to voicemail - doesn't even seem
to attempt to call out to OpenSIPS - exactly as if no endpoint is

I've seen posts relating to this with earlier version of OpenSIPS and
setting mid_registrar insertion mode to 1, but that doesn't seem to be an
option with 3.1. What's the best way to handle this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210118/3ebf0546/attachment.html>

More information about the Users mailing list