Re: [OpenSBC] OpenSBC Routing
Brought to you by:
joegenbaclor
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. |