<div dir="ltr">Alright,<div><br></div><div>After better understanding of the SIP spec it looks like even if I can solve this problem I shouldn't, because Route headers can't change once a dialog is established (if someone knows a reliable/supported way to make this happen - that would be great).</div><div><br></div><div>However, as long as my client keeps an active TLS connection open to Kamailio, subsequent messages/responses are delivered over that same connection. So I'm having the client hold that connection open (and re-invite in the case that it's closed), and not using outbound on the invite and now things seem to be working.</div><div><br></div><div>Best,</div><div>Colin</div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 8, 2016 at 10:32 AM Colin Morelli <<a href="mailto:colin.morelli@gmail.com">colin.morelli@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey list,<div><br></div><div>So I'm using the outbound module to ensure subsequent requests are delivered over an active TCP connection established by the mobile client. However, now I'm trying to add support for automatically responding to network changes (WiFi <-> LTE), and it's creating problems.</div><div><br></div><div>Primarily, the issue is that when the device sends a re-INVITE for the call, its Route: header includes a flow-token corresponding to its <i>old</i> socket connection. Because the new request doesn't have the same source IP/port as the old connection did Kamailio thinks that the next route hop it needs to take is to pass the request over to the connection identified by the flow token. So it actually tries to re-open a TCP connection back out to the client even though I'm making the re-invite because that old transport is no longer valid.</div><div><br></div><div>Does anyone have a recommended way of handling this case? I can add another header/param to the route header and manually remove it. Before loose_routing.</div><div><br></div><div>Essentially, on in-dialog INVITE requests I want to ignore the outbound token on the originating side but I can't seem to find a way to do that without re-writing the header before loose_routing.</div><div><br></div><div>Best,</div><div>Colin</div></div></blockquote></div>