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@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to