[SR-Users] destination ip address

Péter Barabás Peter.Barabas at minerva-soft.com
Mon Jul 11 15:47:52 CEST 2016


Okay, thanks.

Péter

From: sr-users [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla
Sent: Monday, July 11, 2016 1:14 PM
To: Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
Subject: Re: [SR-Users] destination ip address


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<mailto: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/3d9c1f37/attachment.html>


More information about the sr-users mailing list