<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2654.45">
<TITLE>SEMS IVR</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I'm trying to work with the IVR from SEMS.</FONT>
<BR><FONT SIZE=2 FACE="Arial">I've looked to the example config file that is in the CVS and I realised that is very similiar to the one that I have to Voicemail.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">So, I just wrote other condition &quot;If&quot; in my Voicemail script so that SEMS answers with IVR from requests to sip:ivr@domain</FONT></P>

<P><FONT SIZE=2 FACE="Arial">What is happening is that SEMS answer the call but them imediatly send a BYE message and the call is terminated without no answer.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Does anybody had the some problem?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Here is is my Voicemail and Sems config file</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Best regards,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">João</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># $Id: voicemail.cfg,v 1.2 2003/10/10 06:27:18 jiri Exp $</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># this script is configured for use as voicemail UAS; it processes</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># INVITEs and BYEs and asks SEMS to record media via &quot;vm&quot;; in this</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># script, all record-routing and other constructs known from proxy</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># scripts are not present&nbsp; -- it is a simple UAS </FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># ----------- global configuration parameters ------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">#debug= &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#fork=no</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#log_stderror=yes &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd line: -E)</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">debug=4</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#fork=no</FONT>
<BR><FONT SIZE=2 FACE="Courier New">log_stderror=yes</FONT>
<BR><FONT SIZE=2 FACE="Courier New">check_via=no&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -v)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">dns=no&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -R)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">port=5090</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#children=4</FONT>
<BR><FONT SIZE=2 FACE="Courier New">fifo=&quot;/tmp/vm_ser_fifo&quot;</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># ------------------ module loading ----------------------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">loadmodule &quot;/usr/lib/ser/modules/sl.so&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">loadmodule &quot;/usr/lib/ser/modules/tm.so&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">loadmodule &quot;/usr/lib/ser/modules/maxfwd.so&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">loadmodule &quot;/usr/lib/ser/modules/mysql.so&quot;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">loadmodule &quot;/usr/lib/ser/modules/vm.so&quot;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># ----------------- setting module-specific parameters ---------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">modparam(&quot;voicemail&quot;, &quot;db_url&quot;,&quot;mysql://ser:heslo@localhost/ser&quot;)</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># -------------------------&nbsp; request routing logic -------------------</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># main routing logic</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">route{</FONT>
</P>
<BR>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New"># initial sanity checks -- messages with</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New"># max_forwars==0, or excessively long requests</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (!mf_process_maxfwd_header(&quot;10&quot;)) {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (msg:len &gt; max_len){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #len_gt( max_len )) {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;513&quot;, &quot;Message too big&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (!uri==myself) {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;404&quot;, &quot;not reponsible for host in r-uri&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
</P>
<BR>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New"># Voicemail specific configuration - begin</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if(method==&quot;ACK&quot; || method==&quot;INVITE&quot; || method==&quot;BYE&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (!t_newtran()) </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;could not create new transaction\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;500&quot;,&quot;could not create new transaction&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;100&quot;,&quot;Trying -- just wait a minute !&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if(method==&quot;INVITE&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;**************** vm start - begin ******************\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (uri=~&quot;sip:9999@10.112.64.121&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{ </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!vm(&quot;/tmp/am_fifo&quot;, &quot;announcement&quot;))</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<FONT SIZE=2 FACE="Courier New"> {</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1,&quot;couldn't contact announcement server\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;500&quot;, &quot;couldn not contact announcement server&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(&quot;!!!!!!!!!!!!!!!!!!!!!ANNOUNCEMENT!!!!!!!!!!!!!!!!!!!!!!\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">}</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">else&nbsp; if(uri=~&quot;sip:ivr@10.112.64.121&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (!vm(&quot;/tmp/am_fifo&quot;, &quot;ivr&quot;))</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(&quot;could not contact ivr server\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;500&quot;,&quot;could not contact ivr server&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log (&quot;!!!!!!!!!!!!!!!!!!!!!!!!!IVR!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">}</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">else if (uri=~&quot;sip:conf@10.112.64.121&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (!vm(&quot;/tmp/am_fifo&quot;, &quot;conference&quot;))</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(&quot;Could not contact conference server\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;500&quot;,&quot;Could not contact conference server&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log (&quot;!!!!!!!!!!!!!!!!!!!!!CONFERENCE!!!!!!!!!!!!!!!!!!!!!!!!!\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">else </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if(!vm(&quot;/tmp/am_fifo&quot;,&quot;voicemail&quot;))</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;could not contact the answer machine\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;500&quot;,&quot;could not contact the answer machine&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(&quot;!!!!!!!!!!!!!!!!!!!!!!VOICEMAIL!!!!!!!!!!!!!!!!!!!!!!!!!\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;**************** vm start - end ******************\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">} </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">else if(method==&quot;BYE&quot;)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;**************** vm end - begin ******************\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if(!vm(&quot;/tmp/am_fifo&quot;,&quot;bye&quot;))</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;could not contact the answer machine\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">t_reply(&quot;500&quot;,&quot;could not contact the answer machine&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">log(1,&quot;**************** vm end - end ******************\n&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">if (method==&quot;CANCEL&quot;) </FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">{</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;200&quot;, &quot;cancels are junked here&quot;);</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">break;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">};</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Courier New">sl_send_reply(&quot;501&quot;, &quot;method not understood here&quot;);</FONT>
<BR><FONT SIZE=2 FACE="Courier New">}</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">-------------------------------------------------------------------------------------------------------------------------------</FONT></P>
<BR>

<P><FONT SIZE=2 FACE="Courier New"># $Id: sems.conf.sample,v 1.11 2003/11/19 19:03:22 rco Exp $</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># sems.conf.sample</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># Sip Express Media Server (sems)</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># sample configuration file</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># whitespaces (spaces and tabs) are ignored</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># comments start with a &quot;#&quot; and may be used inline</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># example: option=value1, value2&nbsp; # i like this option</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">##################################</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># global parameters&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #</FONT>
<BR><FONT SIZE=2 FACE="Courier New">##################################</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: fork={yes|no}</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - specifies if sems should run in daemon mode (background)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; (fork=no is the same as -E)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">fork=yes</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: stderr={yes|no}</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - debug mode: do not fork and log to stderr</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; (stderr=yes is the same as -E)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">stderr=no</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: loglevel={0|1|2|3}</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets log level (error=0, warning=1, info=2, debug=3)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; (same as -D)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">loglevel=1</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: fifo_name=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - path and file name of our fifo file (same as -i)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">fifo_name=/tmp/am_fifo</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: ser_fifo_name=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - path and file name of Ser's fifo file (same as -o)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">ser_fifo_name=/tmp/vm_ser_fifo</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: plugin_path=&lt;path&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the path to the plug-ins</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - may be absolute or relative to CWD</FONT>
<BR><FONT SIZE=2 FACE="Courier New">plugin_path=/usr/local/lib/sems/plug-in/</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: smtp_server=&lt;hostname&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets address of smtp server</FONT>
<BR><FONT SIZE=2 FACE="Courier New">smtp_server=localhost</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: smtp_port=&lt;port&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets port of smtp server</FONT>
<BR><FONT SIZE=2 FACE="Courier New">smtp_port=25</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New">##################################</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># module specific parameters&nbsp;&nbsp;&nbsp;&nbsp; #</FONT>
<BR><FONT SIZE=2 FACE="Courier New">##################################</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># sample voicemail configuration (inline)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.voicemail=inline</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: announce_path=&lt;path&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the path where announce files are searched for</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - the file to be played is determined the following way:</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; &lt;announce_path&gt;/&lt;domainname&gt;/&lt;username&gt;.wav</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; if this file is not available &lt;announce_path&gt;/&lt;default_anounce&gt; is used</FONT>
<BR><FONT SIZE=2 FACE="Courier New">announce_path=/usr/local/lib/sems/audio/</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># parameter: default_announce=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the name of the default announce WAV file</FONT>
<BR><FONT SIZE=2 FACE="Courier New">default_announce=default_en.wav</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># parameter: max_record_time=&lt;seconds&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - maximum record time</FONT>
<BR><FONT SIZE=2 FACE="Courier New">max_record_time=30</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># end of configuration section for voicemail module</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.voicemail=end</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New"># sample announcement configuration (inline)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.announcement=inline</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># optional parameter: announce_path=&lt;path&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the path where announce files are searched for</FONT>
<BR><FONT SIZE=2 FACE="Courier New">announce_path=/usr/local/lib/sems/audio/</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># parameter: default_announce=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># </FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the name of the default announce WAV file</FONT>
<BR><FONT SIZE=2 FACE="Courier New">default_announce=welcome_to_number_reader.wav&nbsp;&nbsp; #default_en.wav</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># end of configuration section for announcement module</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.announcement=end</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New"># sample isdngw module configuration (external file)</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># config.isdngw=/etc/isdngw.conf</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># sample ivr module configuration (inline)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.ivr=inline</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">#parameter: python_script_path=&lt;full path&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">python_script_path=/etc/ivr</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">#parameter: python_script_file=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">python_script_file=ivr.py #example.py</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># end of configuration section for ivr module</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.ivr=end</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Courier New"># sample conference configuration (inline)</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.conference=inline</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># parameter: default_announce=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># - sets the full pathed name of the default announce WAV file.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp;&nbsp; Will be played to lonely users.</FONT>
<BR><FONT SIZE=2 FACE="Courier New">default_announce=/usr/local/lib/sems/audio/first_participant.wav</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># end of configuration section for conference module</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.conference=end</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># example configuration for number reader</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.number_reader=inline</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">#number_path=wav</FONT>
<BR><FONT SIZE=2 FACE="Courier New">number_path=/usr/local/lib/sems/audio</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">prolog_file=welcome_to_number_reader.wav</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New">epilog_file=thanks_calling_number_reader.wav</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># end of number_reader configuration</FONT>
<BR><FONT SIZE=2 FACE="Courier New">config.number_reader=end</FONT>
</P>

<P><FONT SIZE=2 FACE="Courier New"># add more module configurations here (inline or external):</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># config.mymodule=&lt;filename&gt;</FONT>
<BR><FONT SIZE=2 FACE="Courier New">#&nbsp; or</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># config.mymodule=inline</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># ...</FONT>
<BR><FONT SIZE=2 FACE="Courier New"># config.mymodule=end</FONT>
</P>
<BR>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">&nbsp;</FONT>
</P>
<BR>
<BR>

<P><B><FONT COLOR="#000080" SIZE=4 FACE="Times New Roman">________________________</FONT></B>
<BR><B><FONT COLOR="#000080" SIZE=4 FACE="Times New Roman">João Sampaio</FONT></B>
</P>

<P><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">PT Inovação, SA</FONT>
</P>

<P><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">SRM - Serviços e Redes Móveis</FONT>
</P>

<P><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">email: est-j-sampaio@ptinovacao.pt</FONT>
<BR><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">Tlf:&nbsp; +351 234511160-1907 / +351 234403421</FONT>
</P>

</BODY>
</HTML>