How to enable VOIP? Take 2

21 views
Skip to first unread message

Francis

unread,
Nov 4, 2009, 6:45:59 AM11/4/09
to BigBlueButton-dev
I am now trying to get Asterisk to work using the Flash VOIP client
instead of Zoiper.

In the previous thread Richard suggested modifying the /etc/asterisk/
sip.conf file by changing 'context=bigbluebutton' to 'context=bbb-
conference'. After doing that I got one improvement: clicking the
headset icon in the BBB webview now causes the permission request
popup, which did not occur before making this change. So that's a
positive start.

However, after clicking the 'Allow' button the Voice Participants
window remains emtpy.

The bigbluebutton.log file shows this line:
2009-11-04 12:15:55,729 [Thread-5] ERROR
o.b.c.s.v.a.AsteriskVoiceServer - IOException while connecting to
Asterisk server.

and a little further:
2009-11-04 12:26:19,835 [NioProcessor-1] DEBUG
o.b.c.s.v.a.AsteriskVoiceServer - initialize 85115
2009-11-04 12:26:19,840 [NioProcessor-1] ERROR
o.b.c.s.v.a.AsteriskVoiceServer - No connection to the Asterisk
server. Connection state is DISCONNECTED


Something else I tried is setting the ami.host value to the actual IP
address of the Asterisk server (which is the same as the BBB server
btw) in
/usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties
and
/usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties.

I'm not sure if that's a good idea though, should it stay 127.0.0.1?

This doesn't seem to help though.

Any suggestions on how to fix this problem?

Richard Alam

unread,
Nov 4, 2009, 11:00:05 AM11/4/09
to bigblueb...@googlegroups.com
Hi Francis,

Compare your /usr/share/red5/webapps/bigbluebutton/WEB-INF/bigbluebutton.properties
ami.username and ami.password
the same as what's in /etc/asterisk/manager.conf?

In /etc/asterisk/manager.conf, is it enabled=yes?

Richard
--
---
BigBlueButton
http://www.bigbluebutton.org
http://code.google.com/p/bigbluebutton

Francis

unread,
Nov 4, 2009, 12:31:15 PM11/4/09
to BigBlueButton-dev
Yes they are the same, unless I'm overlooking something. So this is
the contents of /etc/asterisk/manager.conf:

;
; AMI - The Asterisk Manager Interface
;
; Third party application call management support and PBX event
supervision
;
; This configuration file is read every time someone logs in
;
; Use the "manager list commands" at the CLI to list available manager
commands
; and their authorization levels.
;
; "manager show command <command>" will show a help text.
;
; ---------------------------- SECURITY NOTE
-------------------------------
; Note that you should not enable the AMI on a public IP address. If
needed,
; block this TCP port with iptables (or another FW software) and reach
it
; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
; interface available over http if Asterisk's http server is enabled
in
; http.conf and if both "enabled" and "webenabled" are set to yes in
; this file. Both default to no. httptimeout provides the maximum
; timeout in seconds before a web based session is discarded. The
; default is 60 seconds.
;
[general]
displaysystemname = yes
enabled = yes
;webenabled = yes
port = 5038

;httptimeout = 60
; a) httptimeout sets the Max-Age of the http cookie
; b) httptimeout is the amount of time the webserver waits
; on a action=waitevent request (actually its httptimeout-10)
; c) httptimeout is also the amount of time the webserver keeps
; a http session alive after completing a successful action

bindaddr = 0.0.0.0
;displayconnects = yes
;
; Add a Unix epoch timestamp to events (not action responses)
;
;timestampevents = yes

;[mark]
;secret = mysecret
;deny=0.0.0.0/0.0.0.0
;permit=209.16.236.73/255.255.255.0
;
; If the device connected via this user accepts input slowly,
; the timeout for writes to it can be increased to keep it
; from being disconnected (value is in milliseconds)
;
; writetimeout = 100
;
; Authorization for various classes
;read = system,call,log,verbose,command,agent,user,config
;write = system,call,log,verbose,command,agent,user,config

; BigBlueButton: Enable Red5 to connect
[bbb]
secret = secret
permit = 0.0.0.0/0.0.0.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

And this is the contents of /usr/share/red5/webapps/bigbluebutton/WEB-
INF/bigbluebutton.properties:

#
#
# Location for recordings
recordingsDirectory=/var/bigbluebutton


# These properties are for Asterisk Management Interface (AMI)
ami.host=10.10.129.238
ami.port=5038
ami.username=bbb
ami.password=secret

version=0.4a-2484-2009-09-14_12-17-37

Do you see something?

Richard Alam

unread,
Nov 4, 2009, 12:58:39 PM11/4/09
to bigblueb...@googlegroups.com
try changing
bindaddr = 0.0.0.0

to your ip
bindaddr = 10.10.129.238

or to 127.0.0.1 and do the same for bigbluebutton.properties

Richard

Francis

unread,
Nov 5, 2009, 8:44:55 AM11/5/09
to BigBlueButton-dev
Did I mention I'm a noob when it comes to Unix-like systems? I found
the problem: the asterisk service was not running. Each time after
installation I rebooted my machine, assuming that the boot procedure
would automatically start all bbb services. The services are started,
but not Asterisk. I don't know why, maybe I overlooked something in
the docs?

Anyway, on my Ubuntu machine (Mint actually) I now the commands found
in the CentOS build documation:

sudo service activemq restart
sudo service red5 restart
sudo service tomcat6 restart
sudo service asterisk restart

After doing this it all works fine.

Francis

unread,
Nov 6, 2009, 7:05:56 AM11/6/09
to BigBlueButton-dev
A few more findings:
- VOIP worked, the only problem was that the participants list was not
filled.
- Restarting the Asterisk server doesn't solve this problem.
Restarting all the services (see above) does resolve the problem
however. Needs needs to be done explicitly after booting my machine.

Gerard

unread,
Nov 6, 2009, 8:50:53 AM11/6/09
to BigBlueButton-dev
Hello everyone,
After trying a few hours, am I still not able to get VOIP to work. If
there is anyone who has a working version of BBB with VOIP, please can
you post the configuration files. I could can compare them with mine
and see what I am doing wrong.

thanks!


Gerard
> however. Needs needs to be done explicitly after booting my machine.- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

Richard Alam

unread,
Nov 6, 2009, 9:27:30 AM11/6/09
to bigblueb...@googlegroups.com
Take a look here http://pastebin.com/m6af7854d

Those come standard with the VM.

Are you installing manually? Perhaps you can post you configs in
pastebin so we can take a look.

Anything in sip.log or on the Asterisk console?

Richard

Richard Alam

unread,
Nov 6, 2009, 9:49:49 AM11/6/09
to bigblueb...@googlegroups.com
Hi Francis,

We're aware of the problem where services don't startup properly after
reboot. You can see it in the bottom of the wiki
http://code.google.com/p/bigbluebutton/wiki/InstallingBigBlueButton

Adam is trying to figure that out.

Richard
Reply all
Reply to author
Forward
0 new messages