Thread: [OpenSBC] OpenSBC Routing
Brought to you by:
joegenbaclor
|
From: OpenSBC F. <ope...@op...> - 2008-12-31 18:34:59
|
Hi Guys I don't quite understand the routing of OpenSBC. IP Calls to TOPEX IP - works great Calls from 1 Client to another work Great via OpenSBC Calls from Topex IP to OpenSBC registered client I get 405 not allowed My Topex does not register on the OpenSBC. How can I allow all calls from 192.168.1.10 to any registered clients on the OpenSBC. Private Interface on Topex is 192.168.1.10 Private Interface on OpenSBC is 192.168.1.11 Public IP on OpenSBC sip.mobilesqueeze.co.uk My setup is like this: Works Great INTERNET ------Public Address/Private Address ----------------------- Private Address SIP Clients ---------- OpenSBC ------------------------------------------------[TOPEX IP] ---- SS7 405 not allowed Topex to OpenSBC - can't get route to work SS7 --- [TOPEX IP] ----- OpenSBC-------- SIP Clients Setup B2B Only mode Local accounts sip:02033902000:xx...@si... sip:02033902001:xx...@si... Routing [sip:0*@sip.mobilesqueeze.co.uk] sip:192.168.1.10 (TOPEX) [02033902000*] If I dial from a SIP client an 0xxxx number if goes into the TOPEX - 192.168.1.10 - great But if i send a call from my mobile to 02033902000, my [http://TOPEX - 192.168.1.10|http://TOPEX - 192.168.1.10] sends the call to the to the regsietered OpenSBC but i get 405 mothod not allowed Thanks Tony |
|
From: OpenSBC F. <ope...@op...> - 2009-01-01 16:10:57
|
Hi Tony, Sorry for the late reply. You have to send the level 5 log for the none working call from your Topex UA towards the registered UA so we can determine what's causing the 405 reponse. You may mail it to joegen @ opensipstack.org as an attachment. Joegen > {quote:title=telswitch wrote:}{quote} > Hi Guys > > I don't quite understand the routing of OpenSBC. > > IP Calls to TOPEX IP - works great > Calls from 1 Client to another work Great via OpenSBC > Calls from Topex IP to OpenSBC registered client I get 405 not allowed > > My Topex does not register on the OpenSBC. > > > How can I allow all calls from 192.168.1.10 to any registered clients on the OpenSBC. > > > Private Interface on Topex is 192.168.1.10 > Private Interface on OpenSBC is 192.168.1.11 > Public IP on OpenSBC sip.mobilesqueeze.co.uk > > > My setup is like this: > > > Works Great > SIP Clients via OpenSBC to [TOPEX IP GW] > > Topex to OpenSBC - can't get route to work to work 405 not allowed > SS7 to [Topex IP GW] to [OpenSBC] to SIP Clients > > > Setup B2B Only mode > Allow all calls - un ticked > > Local accounts > sip:02033902000:xx...@si... > sip:02033902001:xx...@si... > > Routing > --sip:0*@sip.mobilesqueeze.co.uk-- sip:192.168.1.10 (TOPEX) > > If I dial from a SIP client an 0xxxx number if goes into the TOPEX - 192.168.1.10 - great > > > But if i send a call from my mobile to 02033902000, my topex it sends the call to the to the registered client on OpenSBC but i get 405 method not allowed > > > Thanks > > > Tony |
|
From: OpenSBC F. <ope...@op...> - 2009-01-01 16:30:54
|
It appears that your calls to Topex would fail because you created a B2BUA route that sends any call with a 0 prefix to 192.168.1.10. I assume that the 405 error is coming from Topex when the call hairpins back to it. When OpenSBC is in B2B Only mode, it will prioritize explicitly defined B2BUA routes over the local registrar. One way to fix this would be to use a prefix like 999 to route calls to Topex, this way OpenSBC will be able to distinguish between inbound calls to a locally registered UA and outbound calls meant to be routed to Topex UA. The various modes of operation are as follows: ---------------------------------- *Full Mode* - By default OpenSBC runs in full mode exposing its capability both as a relay SIP proxy, Registrar and as a B2B User Agent. When OpenSBC receives an INVITE or a REGISTER request it would follow the following procedure to make a decision how to route a request: ● If the Request-URI resolves to a remote domain, the request will be relayed. If a relay route is available, the request is sent to that route. If a relay route is not available, then the URI is resolved via DNS. ● If the Startline-URI resolves as a local address and port, the To URI is checked if it resolves to a local domain and port. If not, the request would be proxied using Relay Routes or via DNS resolution. The Request URI would be rewritten to point to the resolved route. ● INVITE: If both Request URI and To URI resolves to a local listener and port, the B2BUA Route is used to route the INVITE. ● REGISTER: If both Request URI and To URI resolves to a local listener and port, the local Registrar will process the registration. This would include Authorization of the user. *B2BOnly Mode* - This mode removes the relay capability but exposes the Registrar and the B2BUA functionalities. This mode does not do the checks performed by Full Mode. It will always process REGISTER and INVITE as local. ● INVITE: This mode always use B2BUA Route to route calls. If there is not corresponding route found, a DNS resolutions is done against the Request URI or the To URI in case the Request-URI resolves to a local address. ● REGISTER: Registrations are always handled by the local registrar. *Proxy Only Mode* - This mode removes the B2BUA functionality but exposes Registrar and the relay SIP Proxy functionalities ● Always uses Relay Routes for all messages including REGISTER. If a relay route is not configured, Requests will be relayed using DNS resolution. If a registrations is resolved as local, the registrar would handle the registration including authorization *B2BUpperReg Mod*e - This is almost the same as the B2BOnly mode but with the additional capability of relaying registrations to upper registrars. ● INVITE: This mode always uses B2BUA Route. ● REGISTER: For registrations, it performs the Request URI and To URI checking and relay for a remote domain or process the registration locally for local domains. ● Upper-Registration: This mode also has the capability to hijack-registrations towards upstream registrars. |