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
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
Okay, thanks.
Péter
From: sr-users [mailto:sr-users-bounces@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@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@lists.sip-router.orgmailto: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
Hello,
Is it possible to take out shared memory code from kamailio?
if so ,Will it work without any crash?