<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">The literal contact header (after subst_hf mangling) became</div><div class=""><br class=""></div><div class="">Contact: <<a href="sip:2018092417381900003@81.x.x.x" class="">sip:2018092417381900003@81.x.x.x</a>><br class=""><a href="sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp" class="">sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp</a></div><div class=""><br class=""></div><div class="">Which is completely bogus.</div><div class=""><br class=""></div><div class="">I was trying (as a temporary hack) to mangle this to become</div><div class=""><br class=""></div><div class="">Contact: <<a href="sip:2018092417381900003@81.x.x.x" class="">sip:2018092417381900003@81.x.x.x</a>></div><div class=""><br class=""></div><div class="">Which would have matched the contact header from the INVITE and then I would have seen whether this affects the subsequent ACK for the 200 OK.</div><div class=""><br class=""></div><div class="">But my usage of subst_hf() turned this (syntactically correct yet uninterpretable) header</div><div class=""><br class=""></div><div class="">Contact: <<a href="sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp" class="">sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp</a>></div><div class=""><br class=""></div><div class="">into</div><div class=""><br class=""></div><div class="">Contact: <<a href="sip:2018092417381900003@81.x.x.x" class="">sip:2018092417381900003@81.x.x.x</a>><br class=""><a href="sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp" class="">sip:b73c6f29-0101-4802-afcd-efb63f1e6d8f@10.10.10.12:5090;transport=udp</a></div><div class=""><br class=""></div><div class="">The code for the mangling is this:</div><div class=""><br class=""></div><div class="">$var(ctct) = "<<a href="sip:2018092417381900003@81.x.x.x" class="">sip:2018092417381900003@81.x.x.x</a>>";<br class="">subst_hf("Contact", “/\<.+\>/$var(ctct)\r\n/", "a”);</div><div class=""><br class=""></div><div class="">Which is why I originally asked about how to use subst_hf just to debug the missing ACK.</div><div class=""><br class=""></div><div class=""><br class="Apple-interchange-newline">
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On 24 Sep 2018, at 19:25, Alex Balashov <<a href="mailto:abalashov@evaristesys.com" class="">abalashov@evaristesys.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">On Mon, Sep 24, 2018 at 06:27:51PM +0100, Ben Hood wrote:<br class=""><br class=""><blockquote type="cite" class="">Contact: <<a href="sip:2018092417381900003@81.x.x" class="">sip:2018092417381900003@81.x.x</a> <<a href="sip:2018092417381900003@81.x.x" class="">sip:2018092417381900003@81.x.x</a>>.x><br class=""></blockquote><br class="">Is this literally your Contact header? If so, it is definitely not<br class="">grammatically valid, and you are entirely right to assume that the<br class="">end-to-end ACK, along with any other in-dialog messages, will not be<br class="">routed from the caller correctly.<br class=""><br class="">-- <br class="">Alex Balashov | Principal | Evariste Systems LLC<br class=""><br class="">Tel: +1-706-510-6800 / +1-800-250-5920 (toll-free) <br class="">Web: <a href="http://www.evaristesys.com/" class="">http://www.evaristesys.com/</a>, <a href="http://www.csrpswitch.com/" class="">http://www.csrpswitch.com/</a><br class=""><br class="">_______________________________________________<br class="">Kamailio (SER) - Users Mailing List<br class=""><a href="mailto:sr-users@lists.kamailio.org" class="">sr-users@lists.kamailio.org</a><br class="">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users<br class=""></div></div></blockquote></div><br class=""></body></html>