[SR-Users] kamailo uses wrong ip address

Daniel Tryba daniel at pocos.nl
Fri Feb 7 18:28:41 CET 2014


On Friday 07 February 2014 18:18:50 jaflong jaflong wrote:
>   $ru = "sip:"+$rU+"10.31.2.101:5090;transport=tls";    
> 
>     if (!t_relay_to_tls()) {
>         sl_reply_error(); 
>         return; 
>     }
> 
> 
> My ip address dest is 10.31.2.101.
> 
> Why has 130.31.2.101 been used?

Check the variable $du, if it is set it will be relayed there. $du=$null to 
unset and relay to $ru.

http://www.kamailio.org/wiki/cookbooks/4.0.x/pseudovariables
Destination URI

$du - reference to destination uri

If loose_route() returns TRUE a destination uri is set according to the first 
Route header. $du is also set if lookup() function of 'registrar' module finds 
contact(s) behind NAT. 



-- 

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024



More information about the sr-users mailing list