Re: [OpenSBC] OpenSBC as registrar for Asterisk
Brought to you by:
joegenbaclor
From: OpenSBC F. <ope...@op...> - 2009-02-04 15:06:04
|
Ok. Let's try this one more time. What you explained here is actually what is referred to as Upper Registration in OpenSBC Linggo. Let us say you have the following IP address assignments OpenSBC: 111.111.111.111 Asterisk: 222.222.222 The first thing that you need to set the SBC-Application-Mode to B2BUpperReg Mode. You need to set this in General-Parameters. Then add a route in B2BUA-Routes that would route all calls to your asterisk box. {code} /* Route all INVITEs to asterisk */ [sip:*] sip:222.222.222.222 {code} {code} /* Set Accept-All-Calls to TRUE in trusted domains so OpenSBC will not authenticate calls. Asterisk should be doing this. */ Accept-All-Calls=true {code} Grab your SIP Phone config and set the following {code} Outbound-Proxy: 111.111.111.111 /// Set the address of OpenSBC as outbound proxy for your phone. Registrar/Domain: 222.222.222.222 /// Set the registrar of your phone to the address of asterisk {code} When your phone send the register, it would look like this (replace [] with <>) {code} REGISTER sip:222.222.222.222 SIP/2.0 From: "Phone" [sip:user@222.222.222.222];tag=tag123 To: "Phone" [sip:user@222.222.222.222] Contact: [sip:user@10.0.0.1:5060];expires=3600 {code} OpenSBC would automatically relay this REGISTER request to asterisk. You will see the status of upper registrations in the OpenSBC-Registration-Status. All other phones should be able to reach this extension when they call through asterisk. > {quote:title=oliverkazaam41 wrote:}{quote} > > First of all I want to thank all of you guys who answered my post. I somehow was able to integrate OSSBC and asterisk. I can now call extensions registered in my asterisk using extensions registered in OSSBC. I don't if this is possible can extensions registered in asterisk call extensions registered in SBC? Because right now with my current setup I can't. Do I have to modify something in asterisk? I had a temporary solution by creating a trunk and peered it to my SBC. But the problem is I have to add a prefix since extensions registered in OSSBC is configured in my asterisk box. Is there a way for asterisk to call extensions registered in OSBC directly without the sip trunk? I really thought that when somenone registers in OSSBC it will automatically forward it to asterisk and asterisk will treat that extension as registered directly to asterisk. Is this setup possible? > HTH, Joegen |