Jump to content
Science Forums

Compiling Asterisk with IMAP Voicemail Storage (on CentOS 5.4)


Recommended Posts

Another one of my craazeh tuts :phones:


Prerequisite, please read the tutorial on installing asterisk with mysql


before we start


install build tools :phones:


# yum install gcc libevent libevent-devel readline readline-devel ncurses ncurses-devel glib2 glib2-devel mysql-devel


install prerequisites for compiling asterisk

# yum install gcc gcc-c++ kernel-devel bison openssl openssl-devel perl perl-Net-SSLeay perl-Crypt-SSLeay libtermcap-devel ncurses-devel doxygen curl-devel newt-devel mlocate lynx tar wget nmap bzip2 mod_ssl crontabs vixie-cron speex speex-devel unixODBC unixODBC-devel libtool-ltdl libtool-ltdl-devel mysql-connector-odbc mysql mysql-devel mysql-server php-mysql php-mbstring php-mcrypt flex screen bzip2 mlocate vixie-cron tar wget mysql-connector-odbc libxml2-devel libidn-devel krb5-devel krb5-libs zlib-devel libidn-devel


install error reporting lib


# yum install compat-libcom_err

# ln -sf /usr/lib64/libcom_err.so.3.0.0 /usr/lib64/libcom_err.so


ok we now need the asterisk distributables and imap libraries, download from Digium's website the asterisk, asterisk-addons and the dahdi driver source packages


download the latest imap libraries from ftp://ftp.cac.washington.edu/mail/


install the prerequisites for the imap client libs

# yum install pam-devel


start with the client (note we dont need to actually install the libraries, we do need to compile them to be able to link too them from asterisk


# tar xvzf imap-2007e.tar.gz

# cd imap-2007e

# make clean

# make lr5 EXTRACFLAGS="-I/usr/include/openssl -fPIC"


note we wont actually make install :evil:


next lets build asterisk with imap support :)


# cd /usr/local/src

# tar xvzf asterisk-addons-

# tar xvzf asterisk-

# tar xvzf dahdi-linux-complete-current.tar.gz


as before we start with dahdi


# cd dahdi-linux-complete-

# make clean

# make

# make install

# make config

# chkconfig dahdi on

# /etc/init.d/dahdi start


note: if it screams at you about your kernel, reboot your box, you have a newer kernel installed then you are running...


# cd ../cd asterisk-


(note as of this writing the latest version is RC6, and the problem with app queue is probably already fixed, please refer to the other tutorial for how to fix app_queue)


# make clean

# ./configure --with-imap=/usr/local/src/imap-2007e

# make menuselect


make sure you go to Voicemail Build Options and select the IMAP_STORAGE


# make

# make install


aand you are done... only thing left is the configuration, the hard part....

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...