<div dir="ltr">Note that you could equally use add_path().</div><div class="gmail_extra"><br><div class="gmail_quote">On 14 April 2015 at 13:33, Daniel Tryba <span dir="ltr"><<a href="mailto:d.tryba@pocos.nl" target="_blank">d.tryba@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tuesday 14 April 2015 17:11:45 Olle E. Johansson wrote:<br>
> > I could use sqlops to fetch this manually, but is there an easier way I<br>
> > am<br>
> > missing?<br>
><br>
> Use the path header?<br>
<br>
</span>When registering directly to the srv records loadbalanced sip servers there is<br>
no path. But forcefully adding it before save() does the trick<br>
<br>
        if(!is_in_subnet($si, "loadbalancersubnet"))<br>
        {<br>
                append_hf("Path: <sip:localip:5060;lr>\r\n");<br>
                msg_apply_changes();<br>
        }<br>
<br>
        if (save("location"))<br>
<br>
(maybe better to check for the absence of a path header)<br>
<br>
Next problem is getting to the INVITE to the endpoint. server2 is trying to<br>
deliver the INVITE to the internal ipadress of uac2.<br>
<br>
I hate NAT :(<br>
<br>
But thank you Olle for one of your always insightful hints.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>