No subject


Thu Jul 10 23:27:17 CEST 2014


ecipient. The Record-Route and Via headers are used to get the traffic to w=
here it needs to go, correct? If I am sending a message through this path:

SwitchA -> ProxyA -> ProxyB -> SwitchB

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 Proxy=
A (my side).

Thank you,

John Komara

From: Johnathan Komara <john.komara at mongoosemetrics.com<mailto:john.komara@=
mongoosemetrics.com>>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org<mailto:use=
rs at lists.opensips.org>>
Date: Wednesday, August 27, 2014 at 6:08 PM
To: "users at lists.opensips.org<mailto:users at lists.opensips.org>" <users at list=
s.opensips.org<mailto:users at lists.opensips.org>>
Subject: [OpenSIPS-Users] Replace IP in To Field

I need to replace the IP in the To field. It is a requirement for a custome=
r. 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.

It looks as though the dialog is never stored. I have tried to do this in m=
emory and in mysql. I am never able to retrieve a dialog with the "opensips=
ctl fifo dlg_list" command. I have attached links to my debug logs and conf=
ig.

Is there a better way to accomplish this than what I am trying to do?

Debug Logs: http://pastebin.com/mvKx5AQp
Config: http://pastebin.com/n9vwncpU

Thank you,

John

--_000_D024A8CD1188Fjohnkomaramongoosemetricscom_
Content-Type: text/html; charset="iso-8859-1"
Content-ID: <DC943E588D718343A93E2C905DE0EF3F at namprd07.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>
<div>
<div>I am able to accomplish this through the use of the textops module tho=
ugh 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 &#8220;To:&#8221; 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 th=
rough this path:</div>
<div><br>
</div>
<div>SwitchA -&gt; ProxyA -&gt; ProxyB -&gt; SwitchB</div>
<div><br>
</div>
<div>Does the &#8220;To:&#8221; field have to contain the IP address of Pro=
xyB? 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=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri">Thank you,</font></font></div>
<div><font class=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri"><br>
</font></font></div>
<div><font class=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri">John Komara</font></font></div>
</div>
</div>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; 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=3D"font-weight:bold">From: </span>Johnathan Komara &lt;<a href=
=3D"mailto:john.komara at mongoosemetrics.com">john.komara at mongoosemetrics.com=
</a>&gt;<br>
<span style=3D"font-weight:bold">Reply-To: </span>OpenSIPS users mailling l=
ist &lt;<a href=3D"mailto:users at lists.opensips.org">users at lists.opensips.or=
g</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Wednesday, August 27, 2014 at=
 6:08 PM<br>
<span style=3D"font-weight:bold">To: </span>&quot;<a href=3D"mailto:users at l=
ists.opensips.org">users at lists.opensips.org</a>&quot; &lt;<a href=3D"mailto=
:users at lists.opensips.org">users at lists.opensips.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>[OpenSIPS-Users] Replace I=
P in To Field<br>
</div>
<div><br>
</div>
<div>
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line=
-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-famil=
y: Calibri, sans-serif;">
<div>I need to replace the IP in the To field. It is a requirement for a cu=
stomer. I am trying to do this with uac_replace_to. It replaces the To fiel=
d in the INVITE. However it does not replace it ACK to the 200OK. Looking a=
t 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 modifi=
ed 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 &#82=
20;opensipsctl fifo dlg_list&#8221; command. I have attached links to my de=
bug logs and config.&nbsp;</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:&nbsp;<a href=3D"http://pastebin.com/mvKx5AQp">http://paste=
bin.com/mvKx5AQp</a></div>
<div>Config:&nbsp;<a href=3D"http://pastebin.com/n9vwncpU">http://pastebin.=
com/n9vwncpU</a></div>
<div><br>
</div>
<div>
<div><font class=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri">Thank you,</font></font></div>
<div><font class=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri"><br>
</font></font></div>
<div><font class=3D"Apple-style-span" color=3D"#000000"><font class=3D"Appl=
e-style-span" face=3D"Calibri">John</font></font></div>
</div>
</div>
</div>
</span>
</body>
</html>

--_000_D024A8CD1188Fjohnkomaramongoosemetricscom_--



More information about the Users mailing list