How to set up a voicemail server with SEMSThis Howto desribes step by step how to set up a voicemail2email server using SEMSi (0.10.0-rc1). GeneralThis document describes how to set up a voicemail server using SEMSi 0.10.0 rc1. We will be using SEMS 0.10.0-rc1 and SERi 0.9.6-semsi as it's SIP stack. Installation of SER 0.9.6-sems will be in a separate directory such that it can be living on the same host together with different SER versions. In this tutorial I assume the voicemail server has the name sems-vmserver and an interface eth0 with the IP address 10.1.0.236. Our voicemail server will listen for SIP requests on port 5070, and only do voicemail. This means that every request will be passed to SEMS' voicemail application. The voicemail server needs an email address where the email should be sent to. It gets this address from a header This howto assumes we have Linux debian sarge, but it will work fine on any other Linux distribution. Step 1: PrerequisitesFor SEMS we need make and g++>=3.4, we can install it with #apt-get install make g++-3.4 && ln -s /usr/bin/g++-3.4 /usr/bin/g++ && ln -s /usr/bin/gcc-3.4 /usr/bin/gccFor SER we need gcc, make, bison, flex, libc6-dev. As we already have installed gcc-3.4 for SEMS, we can install the remaining with apt-get install make bison libc6-dev flexStep 2: Getting SEMS and SERWe will get SEMS and SER sources in /usr/local/src/: cd /usr/local/srcStep 3: Making SEMS and SERFor SEMS we only need the core and the voicemail module to be built (codec modules are built with the core). cd /usr/local/src/sems-0.10.0_rc1Now we should have the sems binary core/sems and the plugins sems-vmserver:/usr/local/src/sems-0.10.0_rc1# ls -l core/sems core/libWe build ser and its modules: cd /usr/local/src/ser-0.9.6-semsStep 4: Installing SEMS and SER binariesWe will install SEMS and SER in /opt/sems-vm cd /usr/local/src/sems-0.10.0_rc1and cd /usr/local/src/ser-0.9.6-semsunlike later SEMS', rc1 does unfortunately not install the default module configuration and audio files. Therefore we install it by hand: install -m 755 /usr/local/src/sems-0.10.0_rc1/apps/voicemail/etc/voicemail.conf /opt/sems-vm/etc/semsStep 5: Adapting configuration for ser: ser-sems-vm.cfgWe will be using the configuration ser-sems-vm.cfg file attached to this tutorial. First we will copy it to /opt/sems-vm/etc/ser/ser-sems-vm.cfg: cd /opt/sems-vm/etc/In the file ser-sems-vm.cfg we need to set listen= listen=10.1.0.236Step 6: Adapting configuration for SEMSWe will be using the sems.conf file attached to this tutorial. In this file the paths have been already correctly set. At least we need to set the hostname of the SMTPi server in this file # optional parameter: smtp_server=<hostname>In /opt/sems-vm/etc/sems/voicemail.conf we need to set the path of the announcement which is played and the path to the email template: #CFGOPTION_SEMS_ANNOUNCEPATHEditing the email templateThe email template in /opt/sems-vm/etc/sems/default.template can be adapted. The default looks like this: subject: Voice message from: %from%Step 7: Starting SER/opt/sems-vm/sbin/ser -f /opt/sems-vm/etc/ser/ser-sems-vm.cfgStep 8: Testing (Starting SEMS in debug mode)/opt/sems-vm/sbin/sems -f /opt/sems-vm/etc/sems/sems.conf -D 3 -EAnd then we call voicemail. Step 8: Starting SEMS/opt/sems-vm/sbin/sems -f /opt/sems-vm/etc/sems/sems.confStep 9: Monitoring
|
Navigation |