Search

Wednesday, April 21, 2010

app_meetme, zaptel, DAHDI on asterisk 1.4.22 and fc11

app_meetme, zaptel, DAHDI on asterisk 1.4.22 and fc11
=====================================================
App_meetme requires a timer (or ztdummy if we don't have hardware card installed).  Prior to asterisk 1.4.22,
we usually deploy zaptel and load ztdummy module.
 
However, zaptel is too old to work on fc11.  You will probably encounter 
"error: 'struct hrtimer' has no member named 'expires'" when building zaptel.
 
Starting from asterisk 1.4.22, DAHDI (Digium Asterisk Hardware Device Interface) is supported.
We could use DAHDI instead of zaptel to provide a timing source to app_meetme.
 
DAHDI is the new name for 'Zaptel' as of May 19th 2008.
The post at http://blogs.digium.com/2008/05/19/zaptel-project-being-renamed-to-dahdi/ details the reason for the change. Asterisk 1.4 releases later than 1.4.21, and all releases of Asterisk 1.6, will automatically use DAHDI in preference to Zaptel, even if Zaptel is still installed on the system.
 
Below shows how to download and install DAHDI.
Download the DAHDI tarball from :
cd /usr/src
wget http://www.asterisk.org/downloads
// you'd better select the full package, ie both drivers and tools
cd <the DAHDI directory>
make all
make install
make config
 
// now rebuild Asterisk
cd /usr/src/<asterisk>
./configure
make menuselect // make sure packages app_meetme, dahdi are selected
make
make install
 
// make DAHDI  run on reboot
chkconfig --add dahdi
 
// start
service dahdi start
if you don't have hardware card installed, you'll probably see dahdi_dummy loaded
No hardware timing source found in /proc/dahdi, loading dahdi_dummy
Running dahdi_cfg:                                         [  OK  ]
 

// and you can also verify what is up by
[root@virtualbox01 tools]# lsmod |grep dahdi
dahdi_transcode         6140  1 wctc4xxp
dahdi_voicebus         35752  2 wctdm24xxp,wcte12xp
dahdi                 182880  11 xpp,dahdi_transcode,wcb4xxp,wctdm,wcfxo,wctdm24                                              xxp,wcte11xp,wct1xxp,wcte12xp,dahdi_voicebus,wct4xxp
crc_ccitt               1588  2 wctdm24xxp,dahdi
 

// bring up asterisk
service asterisk start
 
// and check that app_meetme and dahdi are there
CLI> module show like dahdi
Module                         Description                              Use Count
codec_dahdi.so                 Generic DAHDI Transcoder Codec Translato 0      
app_dahdiras.so                DAHDI RAS Application                    0      
app_dahdiscan.so               Scan Zap channels application            0      
app_dahdibarge.so              Barge in on channel application          0      
chan_dahdi.so                  DAHDI Telephony                          0      
 
CLI> module show like meetme
Module                         Description                              Use Count
app_meetme.so                  MeetMe conference bridge                 0      
 

// now you should be able to run app_meetme using the dahdi_dummy timer
 
 
 

No comments:

Post a Comment