Sunday, November 17, 2013

Simple Conference Call in Asterisk 11.4.0

A conference call is a telephone call in which the calling party wishes to have more than one called party listen in to the audio portion of the call. The conference calls may be designed to allow the called party to participate during the call, or the call may be set up so that the called party merely listens into the call and cannot speak. It is sometimes called ATC (Audio Tele-Conference).

1. First step is to register 3 sip phones. 
 
[1001]
user=1001
secret=123456
type=friend
host=dynamic
nat=yes
context=confroom
[1002]
user=1002
secret=123456
type=friend
host=dynamic
nat=yes
context=confroom
[1003]
user=1003
secret=123456
type=friend
host=dynamic
nat=yes
context=confroom
2. Make sure there is Asterisk Application app_meeme. To check, go to the asterisk source file

cd /usr/src/asterisk*
make menuselect
make sure app_meetme is [*] checked. If not select it and reinstall. Then restart the asterisk.
make install
service asterisk restart
3. In /etc/asterisk/meetme.conf
 
[rooms]
;
; Usage is conf => confno[,pin][,adminpin]
;
; Note that once a participant has called the conference, a change to the pin
; number done in this file will not take effect until there are no more users
; in the conference and it goes away.  When it is created again, it will have
; the new pin number.
;
;conf => 1234
;conf => 2345,9938
conf => 500
conf => 500
4. Then go to the /etc/asterisk/extension.conf to set the dialplan for the conference calls.
[confroom]
exten => 999,1,Answer()
exten => 999,n,Meetme(500)
exten => 999,n,Hangup()
Then test it. Dial 999 to every sip phones registered on the confroom context.