[Users] Nathelper and branches

Andreas M. openser at breitenlee.net
Wed Apr 5 12:51:11 CEST 2006


Hello,
i have following behavior:

when a client is detected behind nat during REGISTER, and i do "fix 
nated register" i have the public ip address in my location table.

but now, when there is an INVITE sent to this user and i append 
branches, i can see that all invites are sent to the client ip address, 
that makes no sense.

sample config:

route[1]{
            .......................
             append_branch();
             avp_pushto("$ruri/username","s:msisdn"); ## ex: 
0676123456 at myproxy.com
             rewritehostportport("10.0.0.1:5060"); ## my gateway
             route(2);
}
route[2]{
             if(!t_relay()){
                sl_reply_error();
          }
          exit;
}

with ngrep i can see

Initial INVITE to this uri

trying...................

and the the proxy sends:

INVITE sip:initialuri at myproxy.com -> to the ip address that is in the 
location table (in received field)

INVITE sip:0676123456 at 10.0.0.1:5060 -> also to the ip address that is in 
the location table in the received field


if i make this tests without clients behind nat, all is working fine and 
one invite is sent to the client and one to the gateway.

any ideas ?

best regards,
Andreas Matzel











More information about the Users mailing list