SEMS 0.10.0 voicemail server howtoHOWTO set up a voicemail server with SEMSi 0.10.0. GeneralThis document describes how to set up a voicemail server using SEMSi 0.10.0 release. We will be using SERi 0.9.6-semsi as the SIP stack for SEMS. The SER 0.9.6-sems comes bundled with the SEMS 0.10.0 release, which makes installation pretty easy. Installation of SER 0.9.6-sems will be in a separate directory (/opt/seri-sems/) 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. The voicemail server needs to be told that from the many possible applications that are available for SEMS, the voicemail should be run. Therefore, we append a header P-App-Name: voicemail to the INVITE.It also needs an email address to send the mail to, this is to be placed in the parameters header for the application, e.g.: P-App-Param: Email-Address=user@gmail.com. So before t_relaying the INVITE to vmserver:5070 add the two headers, P-App-Name and P-App-Param, with the application name and the email address of the callee To the INVITE. ser.cfg to test this: append_hf("P-App-Name: voicemail\r\n");For further ser configuration example see the Configure-SEMS-Ser-HOWTO. 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 0.10.0We will get the source in /usr/local/src/: cd /usr/local/srcStep 3: Installing SEMS 0.10.0We can install SEMS with all applications, or just install the core and the voicemail application. Step 3a: Install everythingTo install SEMS with all applications, we can simply do the following: make -C sems-0.10.0 allThis installs SEMS with all applications. Additionally, ser-0.9.6-sems is installed in /opt/ser-sems. Step 3b: Install only voicemail applicationWe build ser and install it into /opt/ser-sems: make -C sems-0.10.0/ser-0.9.6-sems allWe install a ser-sems.cfg config file: sudo make -C sems-0.10.0/ install-ser-cfg SERPREFIX=/opt/ser-semsThis will install a customized ser configuration file that instructs ser to send requests directly to SEMS, Of SEMS itself, we install the core: make -C sems-0.10.0/core allthe voicemail application: make -C sems-0.10.0/apps/voicemail alland the configuration for the voicemail application: sudo make -C sems-0.10.0/apps/voicemail install-cfgStep 4: Adapting configuration for sems:We need to configure some parameters in the sems configuration, which is located at /usr/local/etc/sems/sems.conf At least we need to set the hostname of the SMTPi server in this file # optional parameter: smtp_server=<hostname>In /usr/local/etc/sems/etc/voicemail.conf we find the path of the announcement which is played and the path to the email template: #CFGOPTION_SEMS_ANNOUNCEPATHEditing the email templateThe email template in /usr/local/etc/sems/default.template can be adapted. The default looks like this: subject: Voice message from: %from%Step 5: Starting SER/opt/ser-sems/sbin/ser -f /opt/ser-sems/etc/ser/ser-sems.cfgStep 6: Testing (Starting SEMS in debug mode)/usr/local/sbin/sems -D 3 -ENow we can place a call to voicemail, and see how the call is received and the voicemail is sent. Step 7: Starting SEMS/usr/local/sbin/semsStep 8: Monitoringtbd |
Navigation |