[SR-Users] remote ip address of sender and receiver
Daniel-Constantin Mierla
miconda at gmail.com
Mon Jul 3 09:06:27 CEST 2017
Hello,
On 29.06.17 12:45, vuleetu 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.
>
source IP is $si.
For target IP, I assume you use registrar/usrloc - after lookup
location, if $du is not null, then $dd gives the address, otherwise $rd.
Cheers,
Daniel
--
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - www.kamailioworld.com
More information about the sr-users
mailing list