[SR-Users] remote ip address of sender and receiver

vuleetu vuleetu at gmail.com
Fri Jun 30 10:38:42 CEST 2017


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 <damm at 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 <vuleetu at 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 at lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170630/1ebd5c89/attachment.html>


More information about the sr-users mailing list