Asterisk Installing
sudo apt-get update |
Ubuntu 10.04 has broken asterisk-mysql version:
aptitude purge asterisk-mysql |
Now we should enable asterisk mysql realtime module.
Add string “load => res_config_mysql.so” to file /etc/asterisk/modules.conf
into the “modules” section.
Openmeetings will create mysql tables required for asterisk at install.
If we will manage asterisk manually, we need to create tables in mysql
By default openmeetings creates tables:
USE openmeetings; |
Configure mysql realtime module:
Create file /etc/asterisk/res_mysql.conf and add lines:
[general] |
Add next lines into file /etc/asterisk/extconfig.conf:
[settings] |
Add next lines into file /etc/asterisk/extensions.conf:
[rooms] |
Restart asterisk:
> service asterisk restart
Insert, for example, SIP user with name ‘test1’:
insert into sipusers (allow, context, disallow, host, name, secret) values ('g729;ilbc;gsm;ulaw;alaw' , 'rooms' , NULL, 'dynamic' , 'test1', '12345'); |
Then create MeetMe conference:
insert into extensions (context, exten, priority, app, appdata) values (‘rooms’, ‘400’, 1, ‘MeetMe’, ‘400,dM’); |
Now we can register SIP user from any SIP phone with next settings:
name: test1 |
Setup red5sip transport
Unpack red5sip to /opt/red5sip
Install jsvc:
apt-get install jsvc |
Insert proper values to /opt/red5sip/settings.properties
red5.host - red5 server address
sip.obproxy - asterisk adderss
sip.phone - sip phone number
sip.authid - sip auth id
sip.secret - sip password
sip.realm - sip realm, “asterisk” by default
sip.proxy -
rooms - ids of openmeetings rooms, can be, for example, 2,3,5,6
Add red5sip to autostart:
ln -s /opt/red5sip/red5sip.sh /etc/init.d/red5sip |
Start red5sip transport:
service red5sip start |
Setup asterisk to external SIP-provider
Add to /etc/sip.conf:
[general] |
Add to /etc/asterisk/extensions.conf:
[rooms] |