[SR-Users] destination ip address

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 11 13:13:44 CEST 2016


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 at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160711/5448b73b/attachment.html>


More information about the sr-users mailing list