yes, i just want remote user's ip address. It is the received filed of location table. After try the suggestion you gave, i still can't get remote ip address of remote receiver.
On Thu, Jun 29, 2017 at 10:46 PM, Sebastian Damm <d...@sipgate.de> wrote: > Hi, > > where do you get the IP address of the receiver from? You can get the > local interface address of Kamailio where the request was received > with $Ri, but I guess you want the IP address of the target host. If > you are dealing with locally registered users only, you can use the > request URI after calling lookup("location"). This should contain the > target's IP address somewhere. > > Best Regards, > Sebastian > > On Thu, Jun 29, 2017 at 4:27 PM, vuleetu <vule...@gmail.com> wrote: > > Hi, all > > > > Is there any way to get remote ip address of both sender($si) and > > receiver(?)? I am configuring kamailio with multiple rtpproxy sets. > > Basically, rtpproxy set will be choosed based on the country those ip > > addresses of caller and callee belong to. Lets say if caller and callee > are > > both in US, set 1 will selected. If they are not in the same country, > set 2 > > will be selected. I dont know if there is any way to do that. > > > > > > Best regards > > > > Fisher > > > > _______________________________________________ > > Kamailio (SER) - Users Mailing List > > sr-users@lists.kamailio.org > > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users > > > > _______________________________________________ > Kamailio (SER) - Users Mailing List > sr-users@lists.kamailio.org > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users >
_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users