<div dir="ltr">I understand intermediate endpoints *expect* these headers, this is why I asked if there's anyway for Kamailio to remember what is removed and essentially re-add them to the response, IE-<div><br></div><div>SIP request hits edge proxy from internal network > Via and Route headers from intermediate proxies are removed, previous 'path' is stored in memory linked to the dialog > SIP request is forwarded to end point.</div><div><br></div><div>End point responds to request via edge proxy > edge proxy looks up existing dialog and reinserts the missing headers > forwards to the next hop.</div><div><br></div><div>What I'm asking is theoretically possible, although it may not be RFC compliant or something that Kamailio supports.</div><div><br></div><div>Thanks</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 20, 2016 at 2:40 AM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</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 03/19/2016 09:43 PM, Marrold wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It should be theoretically possible to remove some of the via and<br>
record-route headers, assuming the contact is also re-written. The end<br>
point's (phones) themselves do not need to be aware of anything<br>
downstream of the SIP server they're registered too.<br>
</blockquote>
<br></span>
No, because intermediate endpoints:<br>
<br>
(1) Expect the Route set to remain as configured between the two endpoints;<br>
<br>
(2) Expect Vias corresponding to their hop to remain as upstream elements remove theirs in transit.<br>
<br>
You can't break SIP like that - terribly sorry! :-)<span class="HOEnZb"><font color="#888888"><br>
<br>
-- Alex</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
Alex Balashov | Principal | Evariste Systems LLC<br>
1447 Peachtree Street NE, Suite 700<br>
Atlanta, GA 30309<br>
United States<br>
<br>
Tel: <a href="tel:%2B1-800-250-5920" value="+18002505920" target="_blank">+1-800-250-5920</a> (toll-free) / <a href="tel:%2B1-678-954-0671" value="+16789540671" target="_blank">+1-678-954-0671</a> (direct)<br>
Web: <a href="http://www.evaristesys.com/" rel="noreferrer" target="_blank">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" rel="noreferrer" target="_blank">http://www.csrpswitch.com/</a><br>
<br>
_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</div></div></blockquote></div><br></div>