[SR-Users] T_RELAY_TO distribute local proxy to a central one

Daniel Tryba d.tryba at pocos.nl
Thu May 12 16:21:23 CEST 2016


On Thu, May 12, 2016 at 03:54:12PM +0200, Sébastien Brice wrote:
> the bad thing is once the phones get registered with non-routable ip
> (like in the attached picture) trying to INVITE them directly by
> requesting public_kamailio_ip result in non-working situation.
> 
> how should I rewrite my dst_domain when registring in a way INVITE
> triggers to the local kamailio.
> 
> My local kamailio runs with the listen udp:private_local_kamailio
> advertise udp:public_local_kamailio

I'm not sure but I think you might want to use Path to resolve this.

When a phone REGISTERs, use
http://www.kamailio.org/docs/modules/stable/modules/path.html#idp3019976
and relay.

On the public kamailio enable path support in the registrar module:
http://www.kamailio.org/docs/modules/stable/modules/registrar.html#idp19423000

You might have to parse headers during INVITE to the natted phones to
figure out the received header with the local adres.




More information about the sr-users mailing list