<?xml version="1.0" encoding="ISO-8859-1"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Open Source Sip: Message List - Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
    <link>http://www.opensourcesip.org:8080/clearspacex/community/opensbc?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 25 Jun 2009 23:18:08 GMT</pubDate>
    <generator>Clearspace 1.10.1 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-06-25T23:18:08Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9715?tstart=0#9715</link>
      <description>&lt;br /&gt;
OPTIONS would be forwarded by OpenSBC becaase it will act as a proxy for none-invite mid dialog requests.</description>
      <pubDate>Thu, 25 Jun 2009 23:18:08 GMT</pubDate>
      <author>joegen</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9715?tstart=0#9715</guid>
      <dc:date>2009-06-25T23:18:08Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9704?tstart=0#9704</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
I found what OSBC has similar problem with OPTIONS messages.&lt;br /&gt;
&lt;br /&gt;
I'm using OpenSBC Version 1.1.5-103 and similar scheme with Asterisk.&lt;br /&gt;
&lt;br /&gt;
SIP message on WAN interface of SBC: &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
OPTIONS sip:&amp;lt;SIP-USER&amp;gt;@&amp;lt;SBC-WAN-IP&amp;gt;:5060 SIP/2.0&lt;br /&gt;
From: "asterisk" &amp;lt;sip:asterisk@&amp;lt;SIP-DOMAIN&amp;gt;&amp;gt;;tag=as0f7e9d34&lt;br /&gt;
To:  &amp;lt;sip:&amp;lt;SIP-USER&amp;gt;@&amp;lt;SBC-WAN-IP&amp;gt;:5060&amp;gt;&lt;br /&gt;
Via: SIP/2.0/UDP &amp;lt;SBC-LAN-IP&amp;gt;:5060;branch=z9hG4bK0affd6986b5ede1192ecf1defbfaffe3;uas-addr=&amp;lt;SBC-WAN-IP&amp;gt;;rport&lt;br /&gt;
Via: SIP/2.0/UDP &amp;lt;ASTERISK-LAN-IP&amp;gt;:5060;branch=z9hG4bK57cb9ae3;rport;rport=5060;received=&amp;lt;ASTERISK-LAN-IP&amp;gt;&lt;br /&gt;
CSeq: 102 OPTIONS&lt;br /&gt;
Call-ID: 6b2f3aaf68e03b744132ed2a0a55c043@&amp;lt;SIP-DOMAIN&amp;gt;&lt;br /&gt;
Contact: &amp;lt;sip:asterisk@&amp;lt;ASTERISK-LAN-IP&amp;gt;&amp;gt;&lt;br /&gt;
Date: Tue, 22 Jun 2009 13:54:11 GMT&lt;br /&gt;
User-Agent: asterisk&lt;br /&gt;
Max-Forwards: 70&lt;br /&gt;
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY&lt;br /&gt;
Supported: replaces&lt;br /&gt;
Content-Length: 0 &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I suppose that &amp;lt;ASTERISK-LAN-IP&amp;gt; in Via and Contact headers it is't so good for "topology hiding" tasks of SBC.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks.</description>
      <pubDate>Tue, 23 Jun 2009 14:21:49 GMT</pubDate>
      <author>dyer</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9704?tstart=0#9704</guid>
      <dc:date>2009-06-23T14:21:49Z</dc:date>
      <clearspace:dateToText>1 year, 2 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9550?tstart=0#9550</link>
      <description>&lt;br /&gt;
This is resolved and working like a champ on Version 1.1.5-101 (which as of May 3rd 2009 is the latest version in CVS). &lt;br /&gt;
&lt;p /&gt;
Thanks Joegen! &lt;br /&gt;
&lt;p /&gt;</description>
      <pubDate>Mon, 04 May 2009 08:19:10 GMT</pubDate>
      <author>Get_The_Fish</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9550?tstart=0#9550</guid>
      <dc:date>2009-05-04T08:19:10Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9542?tstart=0#9542</link>
      <description>&lt;br /&gt;
Ouch!  I am able to replicate this bug.   I have commited a fix in CVS.  Please upgrade OpenSIPStack and OpenSBC once more.  Thanks for the bug report!</description>
      <pubDate>Fri, 01 May 2009 05:13:34 GMT</pubDate>
      <author>joegen</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9542?tstart=0#9542</guid>
      <dc:date>2009-05-01T05:13:34Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9535?tstart=0#9535</link>
      <description>Hi Sorry for the late reply.  Ye please, send the log.   You can either attach it here if your network info can be published or you can send me a private email at joegen@opensipstack.org</description>
      <pubDate>Fri, 01 May 2009 03:27:15 GMT</pubDate>
      <author>joegen</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9535?tstart=0#9535</guid>
      <dc:date>2009-05-01T03:27:15Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9524?tstart=0#9524</link>
      <description>Joegen,&lt;br /&gt;
&lt;br /&gt;
Same exact behavior.  I can send full logs directly to an email address if you wish.  I even went so far as to re-install the OS (CentOS 5.3 94 bit, updated as of April 29th).  I followed the instructions here: [http://www.opensourcesip.org:8080/clearspacex/docs/DOC-1001|d-1001] for installation, with the added "make distrib".  Am I doing something wrong here?  Will the CVS checkout not give me the latest builds?  I did the following, exactly as instructed:&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;table class="jive-wiki-table"&gt;
&lt;tr&gt;
&lt;td&gt;
unix-shell&amp;gt;#cvs -d:pserver:anonymous at opensipstack dot cvs dot sourceforge dot net:/cvsroot/opensipstack login&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
unix-shell&amp;gt;#cvs -z3 -d:pserver:anonymous at opensipstack dot cvs dot sourceforge dot net:/cvsroot/opensipstack co -P module-name&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br clear="left" /&gt;
&lt;p /&gt;
&lt;br /&gt;
with module-name being opensipstack and opensbc, respectively.  The contact field is still not being re-written.  What am I missing here? &lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Thanks again.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Opensbc.ini (obfuscated):&lt;br /&gt;
&lt;p /&gt;
[Solegy]&lt;br /&gt;
RTTS-Client-Address=&lt;br /&gt;
&lt;br /&gt;
[OpenSBC-General-Parameters]&lt;br /&gt;
SIP-Log-Level=4&lt;br /&gt;
PTRACE-Log-Level=4&lt;br /&gt;
Log-File-Prefix=b2bua&lt;br /&gt;
SBC-Application-Mode=B2B Only Mode&lt;br /&gt;
Enable-Trunk-Port=True&lt;br /&gt;
Enable-Calea-Port=True&lt;br /&gt;
RTP-Min-Port=10000&lt;br /&gt;
RTP-Max-Port=20000&lt;br /&gt;
NAT-Keep-Alive-Interval=15&lt;br /&gt;
Send-OPTIONS-NAT-Keep-Alive=False&lt;br /&gt;
Send-Responses-Using-New-Socket=True&lt;br /&gt;
Enable-Local-Refer=False&lt;br /&gt;
Max-Forwards=70&lt;br /&gt;
Encryption-Mode=XOR&lt;br /&gt;
Encryption-Key=GS&lt;br /&gt;
Alerting-Timeout=30000&lt;br /&gt;
Seize-Timeout=60000&lt;br /&gt;
SIP-Timer-B=Default&lt;br /&gt;
SIP-Timer-H=Default&lt;br /&gt;
Session-Keep-Alive=1800&lt;br /&gt;
Session-Max-Life-Span=10800&lt;br /&gt;
Max-Concurrent-Session=200&lt;br /&gt;
Max-Call-Rate-Per-Second=50&lt;br /&gt;
&lt;br /&gt;
[B2BUA-Routes]&lt;br /&gt;
Enable-Route-Scripting=False&lt;br /&gt;
Route-Script=b2bua-route.cscript&lt;br /&gt;
Route-List Array Size=2&lt;br /&gt;
Route-List 1=[sip:*@:5060]sip:&lt;br /&gt;
Insert-Route-Header=True&lt;br /&gt;
Rewrite-TO-URI=True&lt;br /&gt;
Rewrite-From-Domain=sip:&lt;br /&gt;
Prepend-ISUP-OLI=False&lt;br /&gt;
Route-By-Request-URI=False&lt;br /&gt;
Route-By-To-URI=False&lt;br /&gt;
Drop-Routes-On-Ping-Timeout=False&lt;br /&gt;
Use-External-XML=False&lt;br /&gt;
External-XML-File=b2bua-route.xml&lt;br /&gt;
Route-List 2=[sip:*@]sip:, sip:&lt;br /&gt;
&lt;br /&gt;
[Host-Access-List]&lt;br /&gt;
Trust-All-Hosts=False&lt;br /&gt;
Trusted-Host-List Array Size=5&lt;br /&gt;
Trusted-Host-List 1=10.1.2.2&lt;br /&gt;
Enable-Selective-Banning=True&lt;br /&gt;
Banned-Host-List Array Size=0&lt;br /&gt;
Trusted-Host-List 2=&lt;br /&gt;
Trusted-Host-List 3=&lt;br /&gt;
Trusted-Host-List 4=&lt;br /&gt;
Trusted-Host-List 5=&lt;br /&gt;
&lt;br /&gt;
[RTP-Proxy]&lt;br /&gt;
Proxy-On-Private-Contact=True&lt;br /&gt;
Proxy-On-via-received-vs-signaling-address=True&lt;br /&gt;
Proxy-On-Private-Via=True&lt;br /&gt;
Proxy-On-Different-RPORT=True&lt;br /&gt;
Proxy-All-Media=True&lt;br /&gt;
&lt;br /&gt;
[OpenSBC HTTP Admin]&lt;br /&gt;
HTTP User=XXXXXXXXXXXXXXXXX&lt;br /&gt;
HTTP Password=3ftV6zDBQWRzLbLDIIXI2CHrClGzAuP1UshMVSccfsQ=&lt;br /&gt;
SMTP Return Address=XXXXXXXXXXXXXXXXXXXXX&lt;br /&gt;
SMTP Password=GNLh5O0qhXw=&lt;br /&gt;
SMTP Server=XXXXXXXXXXXXXXXXX&lt;br /&gt;
SMTP Admin Address=XXXXXXXXXXXXXXXXXXXX</description>
      <pubDate>Wed, 29 Apr 2009 09:11:44 GMT</pubDate>
      <author>Get_The_Fish</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9524?tstart=0#9524</guid>
      <dc:date>2009-04-29T09:11:44Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9516?tstart=0#9516</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
This is a known bug in recent builds.  I have recently uploaded a fix for this in CVS.  Please upgrade your installation and retest.  Let me know if the problem persists.</description>
      <pubDate>Tue, 28 Apr 2009 23:13:01 GMT</pubDate>
      <author>joegen</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9516?tstart=0#9516</guid>
      <dc:date>2009-04-28T23:13:01Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
    <item>
      <title>Contact address not re-written to WAN IP on SIP OK response to re-invite?</title>
      <link>http://www.opensourcesip.org:8080/clearspacex/message/9497?tstart=0#9497</link>
      <description>Hello all,&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
I must first start by saying that this is an excellent project.  I've been using it for a little over 12 hours now and I am very impressed!  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I do believe that I might have found a bug, however (or at least a quirk  :)).  It appears that on a nat'd UA, OSBC is not re-writing the contact address on a 200 repliy to a re-invite.  &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
The symptom: after 10-15 minutes, outbound calls are dropped.    This is reliably replicated and 100% consistent.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
My scenario is as follows:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Asterisk -&amp;gt; (LAN Interface) OSBC (WAN interface) -&amp;gt; router -&amp;gt; ITSP&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I have the OSBC box multi-homed, one interface on the LAN, the other on the WAN.  There is no firewall and no NAT translation between either interface.  I have the OSBC machine set to B2BUA mode.  My ITSP does not support registration, and uses IP addressing only (no DNS supported in either the SIP TO or FROM addresses).  We are using SIP trunking and SIP UA's (Polycom 501 and 301, 501 used in this scenario).  Asterisk is version 1.4.23.1 on CentOS 5.2, OSBC was built from CVS 4/23/2009 on CentOS 5.3 with package updates as of 4/23/2009 (no extras or non-default repos, base install CLI only no options installed) with iptables and selinux disabled, no other firewall software installed on either Asterisk or OSBC.&lt;br /&gt;
&lt;br /&gt;
Call flow in this scenario:  UA (Polycom 501) -&amp;gt; Asterisk -&amp;gt; (LAN Interface) OSBC (WAN Interface) -&amp;gt; ITSP (Sansay softswitch) -&amp;gt; PSTN&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
The root issue: &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I am seeing in the initial INVITE that on OSBC's OK response the contact IP is re-written to that of the WAN IP address.  However, after about 10-15 minutes on a call, my ITSP is sending a re-INVITE.  OSBC the relays re-invite to asterisk, and upon receiving the 200 from asterisk it ACKs the 200 to Asterisk, and sends a 200 response to the ITSP.  I do not, however, receive an ACK from the provider.  OSBC will then send a BYE, as expected when it does not receive the ACK from the ITSP leg of the call.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I believe that the ITSP's failure to respond to the ACK is due to the LAN IP in the contact address, if I am reading this correctly, according to a conversation here: [http://markmail.org/thread/3hfxk3h2gw4zka5m].  The provider does not exhibit this behavior when Asterisk is using the WAN IP in the contact field.  Is it possible that the provider is sending the ACK to the contact address?  &lt;br /&gt;
&lt;p /&gt;
The reason that I think that this is a bug is that on the initial invite OSBC re-writes the contact field to that of the WAN interface of the OSBC machine.  On the re-invite OSBC does not re-write the contact field, and the contact field contains the LAN IP of the UA (Asterisk). &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;
Any suggestions on how I can work around this?  Is this in fact a bug that needs to be fixed?  Please let me know.  If I can confirm with certainty that this is the root cause of this issue there are options that we have in ensuring that it's addressed that are equitable to everyone and the community will benefit.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I have attached a text file that has the pcap output from the WAN side of the OSBC box, filtered for UDP 5060.  I see the same thing when sniffing directly on the switch and the WAN router. Please let me know if there is anyting that you need or if this is at all unclear.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks in advance for your help, OSBC is an amazing platform!</description>
      <pubDate>Sat, 25 Apr 2009 15:32:26 GMT</pubDate>
      <author>Get_The_Fish</author>
      <guid>http://www.opensourcesip.org:8080/clearspacex/message/9497?tstart=0#9497</guid>
      <dc:date>2009-04-25T15:32:26Z</dc:date>
      <clearspace:dateToText>1 year, 4 months ago</clearspace:dateToText>
      <clearspace:replyCount>7</clearspace:replyCount>
    </item>
  </channel>
</rss>

