This Question is Not Answered

1 "correct" answer available (5 pts) 1 "helpful" answer available (1 pts)
4 Replies Last post: Nov 4, 2009 5:41 AM by james  
Click to view james's profile   14 posts since
Oct 25, 2009

Oct 25, 2009 4:13 PM

incoming calls through opensbc to asterisk fail

Hi,

We're setting up OpenSBC to sit in between asterisk and an ITSP. Phones register with asterisk directly, without going through OSBC. Asterisk registers through OSBC with the ITSP.

The purpose of the SBC is to protect the asterisk server from the ITSP. Eventually, there will be multiple asterisk servers, all talking with the ITSP through OSBC.

Outgoing calls from asterisk to the ITSP work fine. We've configured OSBC in 'B2BUpperReg Mode' and OSBC proxies the SIP messages and RTP streams as expected.

However, incoming calls from the ITSP to asterisk (through OSBC) fail. When we remove OSBC from the equation and have asterisk register to the ITSP directly, without using OSBC as an outbound proxy, all works well.

We've been searching the internet including these forums for days and played with virtually every setting in OSBC, to no avail. Hence this cry for help :)

Whatever we try, asterisk always responds with a 404 message when OSBC is relaying the SIP INVITE messages.

Asterisk debug shows this (note the null string after 'from')
[Oct 25 20:19:10] NOTICE[11186] chan_sip.c: Call from '' to extension '19000' rejected because extension not found.

OSBC routing would appear to work fine, although I'm unsure whether OSBC should be using port 5062 to talk with the ITSP.

I've compared the INVITE messages when arriving at the asterisk server, both with and without OSBC being part of the path. I'm seeing no clear differences, apart from Record-Route being present in the direct INVITE message, as well as different VIA: headers.

I'm attaching my .ini-file, as well as the INVITE messages referred to above.

Also attaching a high-level drawing of our setup.

Not sure if this is important in any way, but the IP adresses which are masked in the attachments are all public addresses, we're not using RFC1918 for any of the servers mentioned.

Many thanks in advance! It's much appreciated.

James
Click to view joegen's profile   519 posts since
Apr 28, 2007
1. Oct 26, 2009 6:30 PM in response to: james
Re: incoming calls through opensbc to asterisk fail

James,

I've looked at the logs and I do not see anything peculiar about the INVITE opensbc is sending. I am afraid you have to dig further into asterisk and unravel more info as to why it rejects and is unable to parse the from header.

Click to view Get_The_Fish's profile   20 posts since
Apr 25, 2009
2. Oct 27, 2009 9:38 PM in response to: james
Re: incoming calls through opensbc to asterisk fail
[Oct 25 20:19:10] NOTICE[11186] chan_sip.c: Call from '' to extension '19000' rejected because extension not found.

Asterisk doesnt know what to do with the call, this is why this is failing. I use almost the exact same setup, except I dont register with my ITSP. I had to setup up trunks with OSBC before it would work. OSBC is "re-writing" the SIP packet, so therefore it appears as if the call is coming from OSBC. Your best bet to play with the SIP peer in sip.conf and enable SIP debugging ("sip set debug ip " at the asterisk CLI) and watch the call come in. That will give you a clue as to what Asterisk is seeing.

Also, are you using FreePBX or one of the FreePBX based distros?

Hope this helps,

Sean