[Users] Nathelper and branches

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Apr 5 20:12:41 CEST 2006


Hi Andreas,

you have to reset the dst_uri after pushing a new ruri. Do it via 
resetdsturi()...see:
    
http://openser.org/dokuwiki/doku.php?id=openser_core_cookbook#resetdsturi

regards,
bogdan

Andreas M. wrote:

> 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
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>





More information about the Users mailing list