<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<tt>Hi, Terrance!<br>
<br>
Can you make a trace and check whether the Contact header is
correct in the 200OK? Also, make sure that all the URI parameters
are preserved over this change.<br>
<br>
Best regards,<br>
</tt>
<pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Solutions
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 03/07/2015 08:32 AM, Terrance Devor
wrote:<br>
</div>
<blockquote
cite="mid:CA+w+2f9=aSMx-JdnnavFfhQcJgOsMn4huW=A7_=CVrBL43+hvw@mail.gmail.com"
type="cite">
<div dir="ltr">Hello Everyone,
<div><br>
</div>
<div style="">Our environment is in an EC2 instance, and would
like to fix the Contact when</div>
<div style="">signalling internally (ie, private IP), and
externally (ie, public IP). I have added</div>
<div style="">the following code:</div>
<div style=""><br>
</div>
<div style="">In branch:</div>
<div style=""><br>
</div>
<div style="">
<div>if(!isflagset(5)) {</div>
<div> remove_hf("Contact:");</div>
<div> append_hf("Contact:
<sip:$fU@<private ip>>\r\n");</div>
<div> }</div>
<div><br>
</div>
<div><br>
</div>
<div style="">In on reply:</div>
<div><br>
</div>
<div>
<div>if(!isflagset(5)) {</div>
<div> remove_hf("Contact:");</div>
<div> append_hf("Contact: <sip:$tU@<public
ip>:5060>\r\n");</div>
<div>}</div>
</div>
<div><br>
</div>
<div style="">Code works fine and changes the contact as
needed however, OpenSIPS stops 200OK on OK.</div>
<div style="">We have the following error message:</div>
<div style=""><br>
</div>
<div style="">
<div>Failed to match the sequential request to a known
dialog</div>
<div>Attempt to route with preloaded Route's
[sip:5147398047@<unerline carrier
ip>/sip:5193403221@<public ip>/sip:<public
ip>;lr;did=2ad.791c28e4/74f3fb2e-3f34-1233-8f94-000c29d9b8bf]</div>
<div><br>
</div>
<div><br>
</div>
<div style="">Your help is greatly appreciated,</div>
<div style=""><br>
</div>
<div style="">Terrance.</div>
</div>
<div><br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>