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: [EMAIL PROTECTED]
            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:[EMAIL PROTECTED] -> to the ip address that is in the location table (in received field)

INVITE sip:[EMAIL PROTECTED]: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








_______________________________________________
Users mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/users

Reply via email to