<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="OPENWEBMAIL" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2">Okay, I'll see if I can answer this so that it makes a little sense. 
<br />
<br />Our particular setup is, from what I gather, rather normal.  We have a SER server running with a basic, general ser.cfg.   We also have another SER server running with a SEMS-specific ser.cfg that we use for handling all the SEMS stuff (it's the only one that directly communicates with the SEMS socket). Our SER server runs on port 5060. Our ser server that handles SEMS stuff runs on port 5090. 
<br />
<br />The basic gist of the config for SEMS is that it checks the URI for some of the basic SEMS stuff (echo server, conference calls, etc), and if it doesn't meet one of those criteria, it defaults to sending the call to the SEMS voicemail module: 
<br />
<br />
<br />                    if (uri=~&quot;^sip:301&quot;) {
<br />
<br />                        if(!t_write_unix(&quot;/tmp/am_sock&quot;,&quot;echo&quot;)) {
<br />                            t_reply(&quot;500&quot;,&quot;error contacting sems&quot;);
<br />                        };
<br />                        break;
<br />                    };
<br />
<br />
<br />
<br />                    log(1,&quot;**** VM ****\n&quot;);
<br />                    if(!t_write_unix(&quot;/tmp/am_sock&quot;,&quot;voicemail&quot;)) {
<br />                        t_reply(&quot;500&quot;,&quot;error contacting sems&quot;);
<br />                    };
<br />                    break;</font><font size="2"><b>
<br />
<br />
<br /></b>etc, etc. 
<br />
<br />Inside the sems.conf, there's a config line to point to the ser fifo (or socket). Something like:  ser_fifo_name=/tmp/vm_ser_fifo
<br />
<br />SEMS should automagically determine the number dialed and the email address to send the wav/mp3 message based on communication via the fifo.  It talks to the SER server and queries the DB through it, querying, I believe, the subscriber table for the email_address. 
<br />
<br />There is another way to give SEMS the email address and default language for the email template, using AVPs, but I've never gotten it to work. It appears the syntax is not accepted in the version of the tm I have with SER 0.9.6.  You can look at the SEMS config examples for more information there. 
<br />
<br />
<br />From there, it's just a matter of setting some timeout conditions in the port 5060 SER, so that if a user doesn't answer (or isn't logged in), it forwards the call to the port 5090 SER (which forwards it to SEMS). 
<br />
<br />I hope I didn't confuse things further. 
<br />
<br />
<br />N. 
<br /><b>
<br />
<br />On Thu, 12 Apr 2007 06:59:53 -0700 (PDT), Meidiana Ten wrote</b>
<br />&gt; Hi,  

<br />&gt; Thanx very much for replying this fast..  
<br />&gt; I'm having SER 
v.0.9.6 as server.  
<br />&gt; Just now, I tried to re-configure my SER script  

<br />&gt; and I place the forwarding script before subscriber lookup and the 
voicemail works perfectly now. Btw, thanx before..  
<br />&gt; What I'm confusing 
now is the usage of voicemail and mailbox.  
<br />&gt; As I know from the 
tutorials, voicemail is used for storing voice message which a caller left 
for negative reply callee and mailbox is to store the the message. Is that 
right?  
<br />&gt; What I got here is, whoever a caller left a voice message for, 
voicemail is directly store in /var/spool/mail/root, and the &lt;To&gt; header 
is always fill with <a href="mailto:root@localhost">root@localhost</a>.  

<br />&gt; What file can I configure so the &lt;To&gt; header can be dynamic 
depend on who the caller leave the message for?  
<br />&gt; Then, when I tried to 
call mailbox (113), my 
voicemail
 config log appears that the mailbox application not found? What is that matter? 
 
<br />&gt; Sorry if my questions alittle bit confusing..  
<br />&gt; Thanx again  

<br />&gt; 
<br />&gt; Regards,  
<br />&gt;    
<br />&gt; Meidiana
<br />&gt; <b><i>sip 
&lt;sip@arcdiv.com&gt;</i></b> wrote:  <blockquote style="border-left: 2px solid rgb(16, 16, 255); padding-left: 5px; margin-left: 5px;" class="replbq">  
<font size="2">Forwarding a call to SEMS should be done on the server side. Trying 
to do it via the client side adds in a whole new level of annoyance and 
complexity, and I've honestly never gotten client-side forwards to work right 
from X-lite. 
<br />&gt; 
<br />&gt; What version of SER are you using?  Have you 
looked at the SEMS setup configs?  What does the portion of your SER config 
look like where you send a call to SEMS? 
<br />&gt; 
<br />&gt; N. 
<br />&gt; 
<b>
<br />&gt; 
<br />&gt; On Wed, 11 Apr 2007 07:25:55 -0700 (PDT), Meidiana Ten 
wrote</b> 
<br />&gt; &gt; Hi there, 
<br />&gt; &gt; I'm 
sorry
 for bothering all this time with same questions 
<br />&gt; &gt; I still can't 
solve the problem because nobody reply it. 
<br />&gt; &gt; I really don't have any 
idea about how SEMS works. 
<br />&gt; &gt; I setup eyebeam to forward call to 
voicemail number which is <a href="mailto:115@domain">115@domain</a> 
<br />&gt; 
&gt; for more info, the voicemail address was one of the user in 
subscriber/aliases table of SER that I added. 
<br />&gt; &gt; When the call 
forwarded, SER have to check to usrloc for the address. It automatically appear 
that User not found on the softphone. 
<br />&gt; &gt; Will it be any way that I 
don't have to create the address for voicemail address but SER can forward the 
call for SEMS? 
<br />&gt; &gt; Or maybe my softphone forward call setting isn't 
right?Btw, I'm using eyebeam. 
<br />&gt; &gt; I hope that someone reply for my 
mail this time. 
<br />&gt; &gt; I'm sorry if my english is bad. 
<br />&gt; &gt;  
 
<br />&gt; &gt; Regards, 
<br />&gt; &gt;   
<br />&gt; &gt; Meidiana 
</font></blockquote>
<br />&gt; 
 
      
<hr size="1" /><a href="http://us.rd.yahoo.com/evt=49935/*http://games.yahoo.com">Bored stiff?</a> 
Loosen up...
<br />&gt; <a href="http://us.rd.yahoo.com/evt=49935/*http://games.yahoo.com">Download and 
play hundreds of games for free</a> on Yahoo! 
Games.

<br />
<br />
<br />
</font>
</BODY>
</HTML>