[Kamailio-Users] How to get the destination IP

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 27 15:17:58 CEST 2009


Hello,

On 27.07.2009 15:14 Uhr, catalina oancea wrote:
> Hello
>
> Is there a way to find the IP address that the request will be sent to
> using kamailio.cfg ? For example if extension is behind NAT, after
> lookup() I have in $rd the IP in the contact column of location table,
> not the actual IP in the received column. I couldn't find a pseudovar
> for this.
>   

check dst uri: $du

Next version using the sip router core provides more info about 
destination via send route.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
* SIP Router Bootcamp
* Kamailio (OpenSER) and Asterisk Training
* Berlin, Germany, Sep 1-4, 2009
* http://www.asipto.com/index.php/sip-router-bootcamp/




More information about the Users mailing list