<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hello,<br>
<br>
The fact you are changing the interface (actually your are
bridging networks) have nothing to do neither with TO and FROM
hdrs (they contain callee/caller identities, nothing to do with
routing), nor with the Contact hdr (this contains the IP
coordinates of the sender of the package, not to be changed in
this case).<br>
<br>
In a interface changing scenario, the things that change are the
VIA and RR headers added by the proxy doing the changing. This
can be done by opensips automatically (see the mhomed) or
manually (via the force_send_socket). See:<br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreParameters-1-10#toc68">http://www.opensips.org/Documentation/Script-CoreParameters-1-10#toc68</a><br>
<a class="moz-txt-link-freetext" href="http://www.opensips.org/Documentation/Script-CoreFunctions-1-10#toc15">http://www.opensips.org/Documentation/Script-CoreFunctions-1-10#toc15</a><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 27.01.2014 21:58, <a class="moz-txt-link-abbreviated" href="mailto:discodog62@aol.com">discodog62@aol.com</a> wrote:<br>
</div>
<blockquote
cite="mid:8D0E9B1402C9C1B-15D8-1A5D9@webmail-vd009.sysops.aol.com"
type="cite"><font size="2" color="black" face="arial">Hello all,
<div>I am trying to setup a opensips server that has 2 ip's one
internal and one external IP. I have set the rewritehostport
to an external IP. When I send the call to the internal NICs
IP the invite makes it to the external server but my to: from:
and header contact all show the original IPs and the header
contact is the internal NICs IP.</div>
<div><br>
</div>
<div>Should I be able to configure the open sips server to
branch a new call that shows the call originating from the
external NIC IP of the opensips server? I have setup rtpproxy
that is working fine changing the SDP contact and media ports
to the external NIC's IP. Can anyone point me in the correct
direction?</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>James</div>
</font>
<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>