[Users] Help with NATHelper module and fix_nated_contact() function

Klaus Darilion klaus.mailinglists at pernau.at
Tue Nov 8 23:31:34 CET 2005


Make sure your function is really called. Put log statements before and 
after the fix_nated_contact function and watch syslog (/var/log/syslog ) 
for the log statements, e.g.:

     log("before fix natted contact\n");
     log("after fix natted contact\n");

you could also use xlog and pseudo variables to log the contact before 
and afterwards the changes.


Anthony Chapellier wrote:
> Hi,
> NatHelper documentation says fix_nated_contact is rewriting contact 
> header with request source address:port but it seems the function 
> doesn't work properly with my SER config...
> Indeed, when you analyze a SIP Request Packet you have the following :
> Message Header :
> Contact : <sip:352621 at>        # is 
> the private IP/Port
> and if this function was working properly, I understand you should get 
> the following :
> Message Header :
> Contact: <sip:352621 at>      # is the 
> public IP/Port
> But the SIP packets that are getting out from SER Proxy to SIP Registrar 
> Server have not their contact header field modified with public IP/Port...
> So, is the function not working ? or something else ?
> Thanks,
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list