<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><tt>Hi John,<br>
<br>
Actually you should use the uac_replace_to() function from the
uac module:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/html/docs/modules/1.11.x/uac.html#id293710">http://www.opensips.org/html/docs/modules/1.11.x/uac.html#id293710</a><br>
<br>
This wil do a SIP-wise change over the TO header (a dialog
persistent change).<br>
<br>
Regards,<br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 28.08.2014 16:50, John Komara wrote:<br>
</div>
<blockquote
cite="mid:D024A8CD.1188F%25john.komara@mongoosemetrics.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<div>
<div>
<div>I am able to accomplish this through the use of the
textops module though it is nowhere near as clean as what it
appears the uac module would do.</div>
<div><br>
</div>
<div>From everything that I have read the “To:” field is the
IP of the logical recipient. The Record-Route and Via
headers are used to get the traffic to where it needs to go,
correct? If I am sending a message through this path:</div>
<div><br>
</div>
<div>SwitchA -> ProxyA -> ProxyB -> SwitchB</div>
<div><br>
</div>
<div>Does the “To:” field have to contain the IP address of
ProxyB? Before I was able to modify the header with substr
it contained the IP address of ProxyA (my side).</div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri">Thank you,</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri"><br>
</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri">John Komara</font></font></div>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt;
text-align:left; color:black; BORDER-BOTTOM: medium none;
BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Johnathan Komara
<<a moz-do-not-send="true"
href="mailto:john.komara@mongoosemetrics.com">john.komara@mongoosemetrics.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>OpenSIPS
users mailling list <<a moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, August
27, 2014 at 6:08 PM<br>
<span style="font-weight:bold">To: </span>"<a
moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>"
<<a moz-do-not-send="true"
href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
<span style="font-weight:bold">Subject: </span>[OpenSIPS-Users]
Replace IP in To Field<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space;
-webkit-line-break: after-white-space; color: rgb(0, 0, 0);
font-size: 14px; font-family: Calibri, sans-serif;">
<div>I need to replace the IP in the To field. It is a
requirement for a customer. I am trying to do this with
uac_replace_to. It replaces the To field in the INVITE.
However it does not replace it ACK to the 200OK. Looking
at the logs I see that a dialog is created for the INVITE.
Immediately after the INVITE is sent the dialog is
destroyed. I am assuming that this is why the To field is
not being modified in the ACK.</div>
<div><br>
</div>
<div>It looks as though the dialog is never stored. I have
tried to do this in memory and in mysql. I am never able
to retrieve a dialog with the “opensipsctl fifo dlg_list”
command. I have attached links to my debug logs and
config. </div>
<div><br>
</div>
<div>Is there a better way to accomplish this than what I am
trying to do?</div>
<div><br>
</div>
<div>Debug Logs: <a moz-do-not-send="true"
href="http://pastebin.com/mvKx5AQp">http://pastebin.com/mvKx5AQp</a></div>
<div>Config: <a moz-do-not-send="true"
href="http://pastebin.com/n9vwncpU">http://pastebin.com/n9vwncpU</a></div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri">Thank you,</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri"><br>
</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font
class="Apple-style-span" face="Calibri">John</font></font></div>
</div>
</div>
</div>
</span>
<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>