Add Condition in Asterisk Dial-plan

While building a dial plan you will always run in scenario where you have to choose the action based on a if statement. In this example we can use a counter variable and based on the value of the variable we can make another decision.  Lets start with normal counter...

Asterisk Realtime conference

For asterisk 1.6 and above Create a new database and table in your mysql database. For adding the table use the below query CREATE TABLE meetme ( confno char(80) NOT NULL default ‘0’, starttime datetime NOT NULL default ‘0000-00-00 00:00:00’,...

Call Recording in asterisk

If you want to do call recording in asterisk, Mix(Monitor() is your friend that you can use in dialplan. For example you want to record the calls coming on DID 1949 555 55555 exten => 19495555555,1,MixMonitor(${UNIQUEID}.ulaw) same => n,Dial(SIP/101) In another...

Count Calls From Asterisk Dialplan

For counting the calls in asterisk , you can use the Group() dialplan function from asterisk dialplan. To add a call to the group function, use this dialplan application Set(GROUP()=call_count) To view the call count, use the dialplan application...

Insert Audio in Conference Bridge

So you have a working conference bridge in asterisk and you want to play a audio file in the conference bridge. Here is how you can add audio to the conference bridge. [ConferenceAudio] ; Users would join the conference at extension 5000 exten => 5000,1,Goto(start,1)...