Hello,<br><br>Thanks for the advice, although I don't think it will help my issue. The 200 OK and other packets are returned to the OpenSIPS server perfectly fine.<br><br>The problem is that the destination phone is showing the call with the Asterisk IP address in it's history, and so if the user chooses to place a return call to that address (eg returning a missed call) it goes directly to Asterisk, bypassing OpenSIPS.<br>
I'm not actually sure if the phone is displaying the From address or the Contact address so it would be useful to make both mention the OpenSIPS IP.<br><br>Thanks,<br><br><div class="gmail_quote">On 31 March 2011 18:41, federico cabiddu <span dir="ltr"><<a href="mailto:federico.cabiddu@gmail.com">federico.cabiddu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
I guess that what you want is that the endpoint receiving the INVITE<br>
sends the 200 OK reply and the subsequent in-dialog messages to<br>
OpenSIPs<br>
For the first point you need to do nothing as the reply should be sent<br>
to the address in the topmost Via header (in this case OpenSIPs'<br>
address). For the second, call record_route() in OpenSIPs script<br>
before sending out the INVITE. The endpoint will then send in-dialog<br>
messages (BYE, re-INVITE) to OpenSIPs.<br>
Hope thsi can help you.<br>
<br>
Regards,<br>
<br>
Federico<br>
<br>
2011/3/31 David Cunningham <<a href="mailto:dcunningham@voisonics.com">dcunningham@voisonics.com</a>>:<br>
<div><div></div><div class="h5">> Hi all,<br>
><br>
> We have an Asterisk server sending INVITEs via OpenSIPS with a "Contact:<br>
> <sip:1234@123.456.789.012>" header where 123.456.789.012 is the Asterisk<br>
> server IP. I want the INVITE's Contact as it leaves OpenSIPS to say the<br>
> OpenSIPS IP address instead.<br>
><br>
> How can I do this? From my understanding of the docs, this is the opposite<br>
> of fix_nated_contact.<br>
><br>
> Thanks for any advice.<br>
><br>
> --<br>
> David Cunningham, Voisonics<br>
> <a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>
> US toll-free: +1 888 842 2720<br>
> UK: +44 (0) 20 3298 1642<br>
> Australia: +61 (0) 2 8063 9019<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>David Cunningham, Voisonics<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>US toll-free: +1 888 842 2720<br>UK: +44 (0) 20 3298 1642<br>Australia: +61 (0) 2 8063 9019<br>
<br>