[Users] rewrite contact field

Norman Brandinger norm at goes.com
Wed Nov 23 22:33:24 CET 2005

Perhaps you are using fix_nat_contact() when you should be using 

Note that fix_nat_register() should ONLY be called when a REGISTER 
method has been received.

The example below uses a couple of M4 defines, but otherwise might work 
for you.  If you have any questions about the statements below, please 
review the documentation available online at openser.org, onsip.org or 

  # NAT Detection
  if (!search("^Contact:[ ]*\*") && nat_uac_test("19")) {


p.s. In regard to your previous problems with devices registered to 
Asterisk, I found that it is a much better idea to have all of the SIP 
devices register with (Open)SER instead of Asterisk.  This solution may 
not be right for you, but it's the way we prefer to do things.

harry gaillac wrote:
> I try to rewrite contact field in sip hf because of
> fix_nat_contact() fail 
> with this diagram
> -----ppp0[ ser/nathelper ] eth0----private network
>             debian 3.1
> when agents send INVITE or REGISTER to ser which
> listen on ppp0 the ip address in contact sip hf stay a
> private ip address, why ?
> I try siproxd which rewrite it .
> how can i build a ser.cfg in order to contact in sip
> hf will be rewritte
> Harry
> ___________________________________________________________________________ 
> Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
> Téléchargez cette version sur http://fr.messenger.yahoo.com
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users

More information about the Users mailing list