On Fri, Sep 02, 2016 at 07:13:13PM +0200, Klaus Darilion wrote:
I see 2 solutions:
a) fix_nated_contact
...
b) if the Contact header must be preserved (strict
clients) or if the
registrar does not apply NAT traversal, then it is necessary to do heavy
message rewriting and registration in the proxy too:
- the URI in the Contact forwarded to the registrar must point to the proxy
- this URI must be mapped by the proxy to the clients received/NAT address
- depending on the requirements (e.g. multiple registrars, multiple domains)
the mapping can be simple or complex
Another solution might be to use the topoh/topos modules. Haven't ever
tried it on a machine that forwards REGISTERs having glanced the topos
code it should work for any SIP message.