1 Replies Last post: Mar 19, 2008 8:53 PM by Guest  
Guest

Mar 18, 2008 9:53 PM

[OpenSBC] B2BUA not rewriting request URI

Hello,

I'm trying to upgrade our installation of OpenSBC 1.1.4 to version
1.1.5, but I can't seem to figure out how to get it to rewrite the
request URI. I have the "Rewrite Request URI" box checked but it's just
not happening.

Details:

We're using OpenSBC as a B2BUA to connect our Asterisk server to our SIP
provider. Our Asterisk machine resides on a private network. We're
running OpenSBC on another machine which has one interface on the
private network and one interface on the public network. Our setup
looks something like this:

Asterisk <--private net> OpenSBC <public net--> SIP provider

When we initially set things up, I used version 1.1.4 of OpenSBC, since
that is the latest source tarball linked on the web site. We have
everything working great with this version.

From reading the mailing list archive, I got the impression that 1.1.5
is what we really want to be running, so I checked the source code out
of CVS tonight (I just pulled HEAD, I didn't see any other branches/tags
that looked like what I wanted, is this correct?) I have 1.1.5 compiled
and installed but I can't get it to work. It looks like the new version
is no longer rewriting the request URI.

Asterisk sends out something like this (IPs changed to protect the
innocent):

INVITE sip:18005551212@192.168.0.10 SIP/2.0

OpenSBC version 1.1.4 takes this and sends something like this out to
our SIP provider:

INVITE sip:18005551212@200.1.2.3 SIP/2.0

This is what our SIP provider is expecting and everything works great.

OpenSBC version 1.1.5-2 (checked out today) doesn't rewrite the IP and
sends something like this out instead:

INVITE sip:18005551212@192.168.0.10 SIP/2.0

Our SIP provider responds to this with a 407 and the call fails to complete.

Again, I do have the "Rewrite Request URI" box checked under the "B2BUA
Routes" section of the configuration interface.

I've attached a copy of my opensbc.ini. Can anybody tell me what I'm
doing wrong with regard to rewriting the URI?

--
Jordan

OpenSBC HTTP Admin
HTTP Password=UP2g/yipQGE=

OpenSBC General Parameters
SIP Log Level=3
PTRACE Log Level=1
Log File Prefix=b2bua
SBC Mode=B2B Only Mode
Interface Address Array Size=0
Always Proxy Media=True
Enable Local Refer=True
Encryption Mode=XOR
Encryption Key=GS
Transaction Thread Count=10
Session Thread Count=10
Alerting Timeout=30000
Seize Timeout=60000
Enable Backdoor Port=False
Enable Trunk Port=False
Enable Calea Port=False
Enable MediaServer=True
Max-Forwards=70
SIP Timer H=Default

B2BUA Routes
Rewrite TO URI=True
ICMP Validation=False
Route Array Size=3
Route 1=sip:8152614950* sip:192.168.0.10
Route 2=sip:8152614947* sip:192.168.0.10
Route 3=sip:* sip:200.1.2.3

Trusted Domains
Accept All Calls=True
Domain Array Size=2
Domain 1=sip:192.168.0.10
Domain 2=sip:200.1.2.3

Host Access List
Trust All Hosts=True
Hosts Array Size=2
Hosts 1=192.168.0.1-192.168.0.254
Ban Selected Hosts=False
Banned Hosts Array Size=0
Hosts 2=200.1.2.1-200.1.2.254


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel
Guest
1. Mar 19, 2008 8:53 PM in response to: Guest
Re: [OpenSBC] B2BUA not rewriting request URI
Jordan,

Based on this INI entry, you did not have Rewrite Request URI set to
anything. I pasted your INI entry here:

B2BUA Routes
Rewrite TO URI=True
ICMP Validation=False
Route Array Size=3
Route 1=sip:8152614950* sip:192.168.0.10
Route 2=sip:8152614947* sip:192.168.0.10
Route 3=sip:* sip:200.1.2.3

Make sure this value is set. I am sure this is working in 1.1.5
because most of our own internal traffic rely on this mechanism to work
properly.

Jordan Webb wrote:

Hello,

I'm trying to upgrade our installation of OpenSBC 1.1.4 to version
1.1.5, but I can't seem to figure out how to get it to rewrite the
request URI. I have the "Rewrite Request URI" box checked but it's
just not happening.

Details:

We're using OpenSBC as a B2BUA to connect our Asterisk server to our
SIP provider. Our Asterisk machine resides on a private network.
We're running OpenSBC on another machine which has one interface on
the private network and one interface on the public network. Our
setup looks something like this:

Asterisk <--private net> OpenSBC <public net--> SIP provider

When we initially set things up, I used version 1.1.4 of OpenSBC,
since that is the latest source tarball linked on the web site. We
have everything working great with this version.

From reading the mailing list archive, I got the impression that 1.1.5
is what we really want to be running, so I checked the source code out
of CVS tonight (I just pulled HEAD, I didn't see any other
branches/tags that looked like what I wanted, is this correct?) I
have 1.1.5 compiled and installed but I can't get it to work. It
looks like the new version is no longer rewriting the request URI.

Asterisk sends out something like this (IPs changed to protect the
innocent):

INVITE sip:18005551212@192.168.0.10 SIP/2.0

OpenSBC version 1.1.4 takes this and sends something like this out to
our SIP provider:

INVITE sip:18005551212@200.1.2.3 SIP/2.0

This is what our SIP provider is expecting and everything works great.

OpenSBC version 1.1.5-2 (checked out today) doesn't rewrite the IP and
sends something like this out instead:

INVITE sip:18005551212@192.168.0.10 SIP/2.0

Our SIP provider responds to this with a 407 and the call fails to
complete.

Again, I do have the "Rewrite Request URI" box checked under the
"B2BUA Routes" section of the configuration interface.

I've attached a copy of my opensbc.ini. Can anybody tell me what I'm
doing wrong with regard to rewriting the URI?

Jordan


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/


_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.21.7/1332 - Release Date: 3/17/2008 10:48 AM


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensipstack-osbcdevel mailing list
Opensipstack-osbcdevel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensipstack-osbcdevel