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


_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to