Hello,

if you want to get the ip where the message is sent, then you have to use onsend_route and inside it you have $sndto(...) class of variables, with ip, port, proto ...

$Ri is the local address where the message was received.

Cheers,
Daniel


On 11/07/16 11:05, Péter Barabás wrote:

Hi All,

 

i need to store some information in routing_logic script into database with useing SQLOPS module. I made a custom table and store such data like source and destination username, domain, ip address and port.

It works fine for almost every parameter except destination IP address and port. I want to ask what is the correct way to determine the destination IP address and port of a user for a MESSAGE, INVITE or BYE message? The $Ri and $Rp is not the correct ones.

 

Thanks.

 

Dr. Péter Barabás

 



_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda