This document provides instructions for setting up Asterisk to integrate with OpenMeetings for video conferencing. The steps include:
1. Installing prerequisite packages for Asterisk and ODBC on the server.
2. Configuring ODBC to connect Asterisk to the OpenMeetings MySQL database.
3. Building and installing Asterisk from source, and configuring modules, extensions, and SIP settings to route calls to OpenMeetings conferences.
4. Downloading and configuring Red5SIP to act as a SIP transport between Asterisk and OpenMeetings.
This document provides instructions for setting up Asterisk to integrate with OpenMeetings for video conferencing. The steps include:
1. Installing prerequisite packages for Asterisk and ODBC on the server.
2. Configuring ODBC to connect Asterisk to the OpenMeetings MySQL database.
3. Building and installing Asterisk from source, and configuring modules, extensions, and SIP settings to route calls to OpenMeetings conferences.
4. Downloading and configuring Red5SIP to act as a SIP transport between Asterisk and OpenMeetings.
This document provides instructions for setting up Asterisk to integrate with OpenMeetings for video conferencing. The steps include:
1. Installing prerequisite packages for Asterisk and ODBC on the server.
2. Configuring ODBC to connect Asterisk to the OpenMeetings MySQL database.
3. Building and installing Asterisk from source, and configuring modules, extensions, and SIP settings to route calls to OpenMeetings conferences.
4. Downloading and configuring Red5SIP to act as a SIP transport between Asterisk and OpenMeetings.
This document provides instructions for setting up Asterisk to integrate with OpenMeetings for video conferencing. The steps include:
1. Installing prerequisite packages for Asterisk and ODBC on the server.
2. Configuring ODBC to connect Asterisk to the OpenMeetings MySQL database.
3. Building and installing Asterisk from source, and configuring modules, extensions, and SIP settings to route calls to OpenMeetings conferences.
4. Downloading and configuring Red5SIP to act as a SIP transport between Asterisk and OpenMeetings.
Modify file /etc/odbc.ini as follows: (replace USER, PASSWORD and Socket with values relative to your system)
[asterisk-connector] Description = MySQL connection to 'openmeetings' database Driver = MySQL Database = openmeetings Server = localhost USER = root PASSWORD = Port = 3306 Socket = /var/run/mysqld/mysqld.sock
Modify file /etc/odbcinst.ini as follows: (replace the path to the *.so files below with the real paths on your system) (The path below is for x32 server, x64 version is most probably located at /usr/lib/x86_64- linux-gnu/odbc)
[MySQL] Description = ODBC for MySQL Driver = /usr/lib/i386-linux-gnu/odbc/libmyodbc.so Setup = /usr/lib/i386-linux-gnu/odbc/libodbcmyS.so FileUsage = 1
Run the following command to ensure everything works as expected:
echo "select 1" | isql -v asterisk-connector
Building and setting up Asterisk Run the commands
sudo mkdir /usr/src/asterisk && cd /usr/src/asterisk sudo wget http://downloads.asterisk.org/pub/telephony/asterisk/releases/aster isk-11.2.1.tar.gz sudo tar -xvzf asterisk-11.2.1.tar.gz cd ./asterisk-11.2.1 sudo make clean sudo ./configure sudo make sudo make install sudo make samples sudo make config sudo service asterisk start
Configure Asterisk Enable asterisk ODBC module:
Modify "[modules]" section of /etc/asterisk/modules.conf as follows: Add/uncomment the following lines
Add next lines into the /etc/asterisk/extconfig.conf:
[settings] sippeers => odbc,asterisk,sipusers
Modify /etc/asterisk/extensions.conf Add the following section:
; ***************************************************** ; The below dial plan is used to dial into a Openmeetings Conference room ; The first line DB_EXISTS(openmeetings/room/ does not belong to the openmeet ings application but is the name of astDB containing the astDB family/key pai r and values ; To Check if your astDB has been created do the following in a terminal wind ow type the following: ; asterisk rx database show ; If you do not receive an output with that resembles openmeetings/rooms/400# # where ## will equal the extension assigned when you created your room ; If you do not receive the above output check your parameters in /opt/red5/w ebapps/openmeetings/WEB-INF/classes/openmeetings-applicationContext.xml ; Go back into the Administrator Panel and remove the PIN number in each room save the record with no PIN number and then re-enter the pin again resave the record. ; *****************************************************
To enable Asterisk Manager API modify /etc/asterisk/manager.conf Add/Modify the following sections:
[general] enabled = yes webenabled = no port = 5038 bindaddr = 127.0.0.1
[openmeetings] secret = 12345 deny=0.0.0.0/0.0.0.0 permit=127.0.0.1/255.255.255.0 read = all write = all
Update Openmeetings with creadentials for Asterisk manager. Modify /opt/red5/webapps/openmeetings/WEB-INF/classes/openmeetings- applicationContext.xml find <bean id="sipDao" class="org.apache.openmeetings.db.dao.room.SipDao"> uncomment its parameters and set it to your custom values. IMPORTANT: this step should be done BEFORE system install/restore otherwise all SIP related room information will be lost
Restart asterisk:
service asterisk restart
Setup red5sip transport Download red5sip from http://red5phone.googlecode.com/svn/branches/red5sip_3.0 Build with Apache Ant
ant
Insert proper values to the /opt/red5sip/settings.properties
red5.host=127.0.0.1 # red5 server address om.context=openmeetings # Openmeetings context red5.codec=asao red5.codec.rate=22 # should correlate with mic settings in public/config.xml sip.obproxy=127.0.0.1 # asterisk adderss sip.phone=red5sip_user # sip phone number sip.authid=red5sip_user # sip auth id sip.secret=12345 # sip password sip.realm=asterisk # sip realm sip.proxy=127.0.0.1 # address of sip proxy rooms.forceStart=no # TBD rooms=1 # TBD (not in use)