Thanks a lot! That works. I had seen it earlier but I ignored it cause
sometimes it is null and I needed a pv to work for all cases. So I am
now making an if, like this:
if ($du!=null) $var(destIP)=$(du{s.select,1,:});
else $var(destIP)=$rd;
...then I use $var(destIP)
2009/7/27 Daniel-Constantin Mierla <miconda(a)gmail.com>om>:
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/