This Question is Answered

1 "correct" answer available (5 pts) 2 "helpful" answers available (1 pts)
48 Replies Last post: Jul 23, 2009 3:37 AM by isaacx   Go to original post 1 2 3 4 Previous Next
  16 posts since
Feb 6, 2009
30. Feb 26, 2009 10:04 AM in response to: oliverkazaam41
Re: OpenSBC as registrar for Asterisk

I haven't got time to investigate more on the subject.

Are you able to runs openSBC + Asterisk now ?

Could you post your config ?

  16 posts since
Feb 6, 2009
31. Mar 12, 2009 1:53 PM in response to: oliverkazaam41
Re: OpenSBC as registrar for Asterisk

Hello,

Does anybody has been able to have OSBC+Asterisk ?

I've test various scenario ... I don't see what I've missed !

Regards

  16 posts since
Feb 6, 2009
33. Mar 13, 2009 5:09 AM in response to: oliverkazaam41
Re: OpenSBC as registrar for Asterisk

What have you done ?

Could you explain in detail your scenario, post here an OSBC.ini and asterisk files ?

It would be nice to make a document for this ...

I'm sure that more people needs this setup !

If you don't wan't to release in this forum contact me in private scramatte(at)gmai(dot)com

Best regards

  3 posts since
May 7, 2009
34. May 8, 2009 7:14 AM in response to: scramatte
Re: OpenSBC as registrar for Asterisk
I also need the same scenario. Please
  16 posts since
Feb 6, 2009
36. May 16, 2009 9:24 AM in response to: oliverkazaam41
Re: OpenSBC as registrar for Asterisk

Could you put the config inside a "code block". Route definition are modified by portal program so I'm not sure that I setup then properly.

Could you post here your sip.conf configuration ?

  16 posts since
Feb 6, 2009
37. May 16, 2009 10:13 AM in response to: scramatte
Re: OpenSBC as registrar for Asterisk

What is the config for the clients ? In Xlite for example I've checked "Register with domain and receive incoming calls" and set proxy to [ipofasterisk]:5062 ...

It will probably easy if you publish your files : opensbc.ini, sip.conf, ...


  16 posts since
Feb 6, 2009
38. May 16, 2009 10:16 AM in response to: scramatte
Re: OpenSBC as registrar for Asterisk

Note that I've got OpenSBC and Asterisk on the same server ...

  16 posts since
Feb 6, 2009
39. May 16, 2009 10:51 AM in response to: scramatte
Re: OpenSBC as registrar for Asterisk

It works for me too ! ...

Was a mistake with port number ...

I've change OpenSBC to listen on port 9000 and register my phone on ipOfAsterisk:9000 and now it works as a charm

Thank you

  16 posts since
Feb 6, 2009
40. May 17, 2009 8:07 AM in response to: scramatte
Re: OpenSBC as registrar for Asterisk

It works perflect meanwhile I call external phone numbers.

If If call any asterisk local registered extension I've got this kind of error :

Note that x.x.x.x is OpenSBC IP (all OpenSBC sip transports: 5060, 5062, ... listen on this interface)

[May 17 13:51:03] WARNING[16231]: chan_sip.c:2901 __sip_xmit: sip_xmit of 0x839ee40 (len 965) to x.x.x.x:5060 returned -1: Operation not permitted
[May 17 13:51:03] WARNING[16231]: chan_sip.c:2901 __sip_xmit: sip_xmit of 0x839ee40 (len 965) to x.x.x.x:5060 returned -1: Operation not permitted
[May 17 13:51:05] WARNING[16231]: chan_sip.c:2901 __sip_xmit: sip_xmit of 0x839ee40 (len 965) to x.x.x.x:5060 returned -1: Operation not permitted

And just after 5s Asterisk cut the communication...

I've made the test with 2 extensions configured behind 2 different internet connection. Both extensions are upper registered perfectly to Opensbc and Asterisk.

But seems that when a call come back from Asterisk to Opensbc occurs something strange like a loop ...

Moreover Asterisk BLF neither works ... probalbly it the same or related problem.

  2 posts since
Jun 20, 2009
41. Jun 28, 2009 2:57 PM in response to: Guest
Re: [OpenSBC] OpenSBC as registrar for Asterisk
Dear ;
Am new for opensbc , just installed opensbc in redhat enterprise 4 server so as to hide my asterisk from internet ,
my scenario as follows

Opensbc with 2 Nic's
Nic1 : has public IP
Nic 2 : private IP
OpenSBC
Unix Linux Version 1.1.5-107

Asterisk Box :
NIC1 : private IP ( same subnet of opensbc Nic2 )

I did download the latest opensbc cvs , and still doesn't work for me am getting always when i tried to register with my soft client ( Registration error 408 - Request timeout
can someone help me to make it working

BR
  30 posts since
Jun 24, 2009
42. Jun 29, 2009 11:17 AM in response to: hsalih
Re: [OpenSBC] OpenSBC as registrar for Asterisk

Hey hsalih...

Post your opensbc.ini

  30 posts since
Jun 24, 2009
43. Jun 29, 2009 12:50 PM in response to: dablackgreek
Re: [OpenSBC] OpenSBC as registrar for Asterisk
Ok one thing learned... In SIP Transports you have to list your Public Interface first to get it to register
  30 posts since
Jun 24, 2009
44. Jun 29, 2009 3:59 PM in response to: dablackgreek
Re: [OpenSBC] OpenSBC as registrar for Asterisk

Ok All. I finally got my OSBC with TWO NICS to Work

My working config is below...

Pay close attention you must declare your Interfaces in the SIP Transports and also look at the Route List in SIP Transports.

FYI: I am running OpenSBC in front of Asterisk

OpenSBC WAN IP: w.x.y.188
OpenSBC LAN IP: 192.168.1.150

Asterisk IP: 192.168.1.250

If you have questions i am actively on this board

[Solegy]
RTTS-Client-Address=192.168.1.150

[OpenSBC-General-Parameters]
SIP-Log-Level=5
PTRACE-Log-Level=1
Log-File-Prefix=opensbc
User-Agent-Name=SBC
SBC-Application-Mode=B2BUpperReg Mode
Interface-Address Array Size=0
Enable-Backdoor-Port=True
Enable-Trunk-Port=False
Enable-Calea-Port=False
Static-RTP-Media-Address=
RTP-Min-Port=30001
RTP-Max-Port=40000
Send-Responses-Using-New-Socket=True
Enable-Local-Refer=False
Max-Forwards=70
Encryption-Mode=XOR
Encryption-Key=GS
Transaction-Thread-Count=10
Session-Thread-Count=10
Alerting-Timeout=30000
Seize-Timeout=60000
SIP-Timer-B=Default
SIP-Timer-H=Default
Session-Keep-Alive=1800
Session-Max-Life-Span=10800
Max-Concurrent-Session=100
Max-Call-Rate-Per-Second=10
Interface-Address 1=sip:192.168.1.150:5060

[Upper-Registration]
All-Reg-As-Upper-Reg=True
Enable-Stateful-Reg=False
Rewrite-TO-Domain=True
Rewrite-FROM-Domain=True
Route-List Array Size=1
Route-List 1=[sip:*@sip.mydomain.net] sip:192.168.1.250;domain=sip.mydomain.com

[Internal-DNS-Mapping]
Internal-DNS-Map Array Size=0

[RTP-Proxy]
Proxy-On-Private-Contact=True
Proxy-On-via-received-vs-signaling-address=True
Proxy-On-Private-Via=True
Proxy-On-Different-RPORT=True
Proxy-All-Media=True

[Media-Server]
Enable-Media-Server=False
Media-Server-Number=5000
Codec-List Array Size=0
No-RTP-Proxy-On-All-Transfers=False
Enable-Announcement-Service=False
4xx-Error-Map=prompts/basic/cant_complete.wav
5xx-Error-Map=prompts/basic/cant_complete.wav
6xx-Error-Map=prompts/basic/cant_complete.wav
Announcement-Error-Map Array Size=0

[B2BUA-Routes]
Enable-Route-Scripting=False
Route-Script=b2bua-route.cscript
Route-List Array Size=1
Route-List 1=[sip:*@sip.mydomain.net] sip:192.168.1.250
Catch-All-Route=
Insert-Route-Header=True
Rewrite-TO-URI=True
Rewrite-From-Domain=
Prepend-ISUP-OLI=False
Route-By-Request-URI=True
Route-By-To-URI=False
Drop-Routes-On-Ping-Timeout=False
Use-External-XML=False
External-XML-File=b2bua-route.xml

[Local-Domain-Accounts]
Accept-All-Registration=True
Account-List Array Size=0

[Trusted-Domains]
Accept-All-Calls=True
Trusted-Domain-List Array Size=0

[Privacy-RFC-3325]
Default-Realm=
Trusted-Domain-List Array Size=0

[SIP-Transports]
Main-Interface-Address Array Size=2
Backdoor-Interface-Address=sip:*:5062
Trunk-Interface-Address=sip:*:5064
Media-Server-Interface-Address=sip:*:5066
CALEA-Interface-Address=sip:*:5068
Auxiliary-Interface-Address=sip:*:5070
Interface-Route-List Array Size=2
Interface-Route-List 1=[sip:192.168.1.*] sip:192.168.1.150
Main-Interface-Address 1=sip:192.168.1.150:5060
Main-Interface-Address 2=sip:w.x.y.188:5060
Interface-Route-List 2=[sip:w.x.y.*] sip:192.168.1.150;external=w.x.y.188