[SR-Users] Shared location database used by independend kamailios
Ben Langfeld
ben at langfeld.co.uk
Tue Apr 14 18:37:42 CEST 2015
Note that you could equally use add_path().
On 14 April 2015 at 13:33, Daniel Tryba <d.tryba at pocos.nl> wrote:
> On Tuesday 14 April 2015 17:11:45 Olle E. Johansson wrote:
> > > I could use sqlops to fetch this manually, but is there an easier way I
> > > am
> > > missing?
> >
> > Use the path header?
>
> When registering directly to the srv records loadbalanced sip servers
> there is
> no path. But forcefully adding it before save() does the trick
>
> if(!is_in_subnet($si, "loadbalancersubnet"))
> {
> append_hf("Path: <sip:localip:5060;lr>\r\n");
> msg_apply_changes();
> }
>
> if (save("location"))
>
> (maybe better to check for the absence of a path header)
>
> Next problem is getting to the INVITE to the endpoint. server2 is trying to
> deliver the INVITE to the internal ipadress of uac2.
>
> I hate NAT :(
>
> But thank you Olle for one of your always insightful hints.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150414/8a5e2bb6/attachment.html>
More information about the sr-users
mailing list