<DIV>
<DIV>
<DIV>Jiri and all,</DIV>
<DIV>&nbsp;</DIV>
<DIV>ser -V **** ser version info<BR><BR>version: ser 0.8.11 (i386/linux)<BR>flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, <BR>SHM_MEM, SHM_MMAP, PKG_MALLOC, F_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<BR>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, <BR>MAX_URI_SIZE 1024, BUF_SIZE 65535<BR>@(#) $Id: main.c,v 1.162.2.5 2003/08/27 16:04:35 andrei Exp $<BR>main.c compiled on 21:37:39 Sep&nbsp; 1 2003 with gcc 3.2<BR><BR>OS ************<BR><BR>Red Hat 9<BR>[root@jiffypop html]# uname -a<BR>Linux jiffypop 2.4.20-20.9smp #1 SMP Mon Aug 18 11:32:15 EDT 2003 i686 <BR>i686 i386 GNU/Linux<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried implementing voicemail by running SER twice simultaneouly on the same box. The first is running with my ser.cfg [pid 24264 below], and the second is with a slight variation of&nbsp;voicemail.cfg [pid 23911 below]&nbsp;as posted recently by Jiri.</DIV>
<DIV>&nbsp;</DIV>
<DIV>This is all done with the 0.8.11 major release of SER. I didn't take the files from CVS as suggested. I'll try that soon. Are there any changes in CVS&nbsp;which are incompatible with the 0.8.11 database configuration? Are there any other changes which I would have to be careful of with respect to compatibility?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Two instances of SER running on the same box works fairly well. I occasionally get an error via syslog which looks like this:<BR></DIV>
<DIV>Oct 13 12:36:07 jiffypop Sems[23889]: Error: while getting return code from Ser<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Below&nbsp;is an example of syslog output when a user is part of the voicemail group but has no user locations in the location database.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24264]: no location-uri is in vm group<BR>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24264]: route[3]:no user location: foward to voicemail<BR>Oct 13 12:33:50 jiffypop ser[23911]: t_newtran created<BR>Oct 13 12:33:50 jiffypop ser[23911]: **************** vm start - begin ******************<BR>Oct 13 12:33:50 jiffypop ser[23911]: **************** vm start - end ******************<BR>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24263]: ACC: transaction answered: from="V11 Main" &lt;si<BR>p:info@10.10.10.49&gt;;tag=fcad7738-6281-77bd-a9bd-0c525a6382fa, i-uri=sip:6670@10.10.10.49, method=IN<BR>VITE, o-uri=sip:sgaudio@10.10.10.49:5090, code=200<BR>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24266]: no location-uri is in vm group<BR>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24266]: route[3]:no user location: foward to voicemail<BR>Oct 13 12:33:50 jiffypop /usr/local/sbin/ser[24266]: ACC: request acknowledged: from="V11 Main"
 &lt;si<BR>p:info@10.10.10.49&gt;;tag=fcad7738-6281-77bd-a9bd-0c525a6382fa, i-uri=sip:sgaudio@10.10.10.49, method<BR>=ACK, o-uri=sip:sgaudio@10.10.10.49:5090, code=200<BR>Oct 13 12:33:52 jiffypop /usr/local/sbin/ser[24265]: no location-uri is in vm group<BR>Oct 13 12:33:52 jiffypop /usr/local/sbin/ser[24265]: route[3]:no user location: foward to voicemail<BR>Oct 13 12:33:52 jiffypop ser[23909]: t_newtran created<BR>Oct 13 12:33:52 jiffypop ser[23909]: **************** vm end - begin ******************<BR>Oct 13 12:33:52 jiffypop ser[23909]: **************** vm end - end ******************<BR>Oct 13 12:33:52 jiffypop /usr/local/sbin/ser[24266]: ACC: transaction answered: from="V11 Main" &lt;si<BR>p:info@10.10.10.49&gt;;tag=fcad7738-6281-77bd-a9bd-0c525a6382fa, i-uri=sip:sgaudio@10.10.10.49, method<BR>=BYE, o-uri=sip:sgaudio@10.10.10.49:5090, code=200<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>Below&nbsp;is an example of a call that gets transferred to voicemail via a failure_route [timeout or "busy" reply].&nbsp;Notice that the ****vm end - begin******* and *****vm end - end ****** entries are missing. Essentially, the voicemail instance of&nbsp;SER isn't processing the BYE messages. I'm not sure why. I guess the other instance of SER is processing them.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Oct 13 12:29:07 jiffypop /usr/local/sbin/ser[24264]: failure_route[4]<BR>Oct 13 12:29:07 jiffypop /usr/local/sbin/ser[24264]: route[4]:Call tried and failed: forward to voi<BR>cemail<BR>Oct 13 12:29:07 jiffypop ser[23914]: t_newtran created<BR>Oct 13 12:29:07 jiffypop ser[23914]: **************** vm start - begin ******************<BR>Oct 13 12:29:07 jiffypop ser[23914]: **************** vm start - end ******************<BR>Oct 13 12:29:14 jiffypop /usr/local/sbin/ser[24265]: ACC: transaction answered: from=&lt;sip:650218888<BR><A href="mailto:4@10.10.10.5>;tag=12FB6358-82B">4@10.10.10.5&gt;;tag=12FB6358-82B</A>, i-uri=sip:6633@10.10.10.49:5060;ftag=12FB6358-82B;lr=on, method=BYE<BR>, o-uri=sip:gnoah@10.10.10.160:5060, code=200<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV>I think these [above log messages]&nbsp;types of transactions are responsible for the above mentioned SEMS error, but I'm not sure.</DIV>
<DIV>&nbsp;</DIV>
<DIV>What I really need now is a way to deal with the timer issue. Jiri, I don't think I need multiple timers. I&nbsp;never want SER to timeout calls placed to the PSTN. I just want one timer which I can apply to selective transactions. Right now, the timer causes all calls to fail. I understand that I can change processing on failure, and I am doing this, but it would be very nice if the timer could be used only for specific transactions. I think this would involve setting it through a&nbsp;function call instead of a&nbsp;modparam call, but I don't know since I haven't actually looked at any code.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've also tried to just relay PSTN calls again (re-relay)&nbsp;through a failure route after the timer expires, but that doesn't seem to be working too well. Is this possible?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Also, I think its not necessary to implement the "single-ser" config that is capable of running voicemail if this dual configuration works well. Of cource, the "single-ser" config would make it a little simpler for users.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks,<BR>Noah</DIV>
<DIV><BR><B><I>Jiri Kuthan &lt;jiri@iptel.org&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">At 04:40 AM 10/11/2003, Gavin Bensom wrote:<BR>&gt;Jiri,<BR>&gt; <BR>&gt;Is it possible to run two instances of ser on the same box, one acting as the proxy and the other acting as the voicemail2email server, or are to different boxes required?<BR><BR>I never tried -- it should, but better verify it. Just try two different <BR>SER's at two different port numbers. Take stable version from CVS for both <BR>SER and voicemail -- I made some recent alignments to better deal with <BR>scenarios like these.<BR><BR>&gt;Can you comment a little more on how to get SER as a proxy to transfer messages to SER as a UAS, both on a single box [if this is possible], and/or in a two box setup.<BR><BR>That's script fragments for the fronting proxy that should make the<BR>job (not verified either):<BR><BR># does the user wish redirection on no availability? (i.e., is he<BR># in the voicemail group?) --
 determine it now and store it in<BR># flag 4, before we rewrite the flag using UsrLoc<BR>if (is_user_in("Request-URI", "voicemail")) {<BR>setflag(4);<BR>};<BR># native SIP destinations are handled using our USRLOC DB<BR>if (!lookup("location")) {<BR># handle user which was not found<BR>if f (isflagset(4)) route(4);<BR>break;<BR>};<BR># if user is on-line and is in voicemail group, enable redirection<BR>if (method == "INVITE" &amp;&amp; isflagset(4)) {<BR>t_on_failure("1");<BR>};<BR><BR>....<BR>route[4] {<BR><BR>rewritehostport("foo.bar:1234");<BR>t_relay();<BR>}<BR>...<BR>failure_route[1] {<BR>revert_uri();<BR>lookup("aliases");<BR>rewritehostport("bat.iptel.org:5090");<BR>append_branch();<BR>t_relay();<BR>}<BR><BR><BR><BR>&gt;I'd really like to do all this on one box as its much more economical.<BR><BR>I will try to get back to you with a "single-ser" config too --<BR>I just happened to run out of time in the past week and will<BR>not be any better off next too weeks.<BR><BR>-jiri
 <BR></BLOCKQUOTE></DIV></DIV><p><hr SIZE=1>
Do you Yahoo!?<br>
<a href="http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext%2Csec%3Amail">The New Yahoo! Shopping</a> - with improved product search