<div>Hi all</div>
<div>&nbsp;</div>
<div>Since long iam running with CDROUTER (0.814)</div>
<div>&nbsp;</div>
<div>Now i have got another server for testing with new Version of SER</div>
<div>&nbsp;</div>
<div>So i took the stable version from <a href="http://onsip.org">onsip.org</a></div>
<div>&nbsp;</div>
<div>and copied all the users and config files from old server to new server</div>
<div>and modified accoring to the new setup</div>
<div>&nbsp;</div>
<div>when the user not available or busy iam sending to voice mail ( asterisk another server)</div>
<div>&nbsp;</div>
<div>but i have new problem here with new version of ser is</div>
<div>&nbsp;</div>
<div>when ever i call from user X to user Y ( once its start&nbsp; ringing)</div>
<div>&nbsp;</div>
<div>if i disconnect the call on X Side, its going to voice mail. ( and other side iam able to see Y user connection hangup)</div>
<div>&nbsp;</div>
<div>same setup working with my old server&nbsp; with out any problem, </div>
<div>&nbsp;</div>
<div>and&nbsp; i ahve changed many things in the config, but no luck, </div>
<div>&nbsp;</div>
<div>so posting in group for the suggestions.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>OLD SERVER</div>
<div>---------------------</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>version: ser 0.8.12 (i386/linux)<br>flags: STATS:Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, DNS_IP_HACK, 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, MAX_URI_SIZE 1024, BUF_SIZE 65535
<br>@(#) $Id: main.c,v 1.168 2003/10/12 15:09:08 andrei Exp $<br>main.c compiled on 19:40:54 Jul 19 2004 with gcc 3.2<br>&nbsp;</div>
<div>-------------------------------------------</div>
<div>NEW SERVER</div>
<div>&nbsp;</div>
<div>version: ser 0.9.7-pre1 (i386/linux)<br>flags: STATS: Off, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, 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, MAX_URI_SIZE 1024, BUF_SIZE 65535
<br>@(#) $Id: main.c,v <a href="http://1.197.2.1">1.197.2.1</a> 2005/07/25 16:56:24 andrei Exp $<br>main.c compiled on 15:49:21 Nov&nbsp; 3 2006 with gcc 3.4.6<br>&nbsp;</div>
<div>-------------------------------------</div>
<div>here is my config</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # does the user wish redirection on no availability? (i.e., is he<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # in the voicemail group?) -- determine it now and store it in<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # flag 4, before we rewrite the flag using UsrLoc<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_user_in(&quot;Request-URI&quot;, &quot;voicemail&quot;)) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(4);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</div>
<div>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # native SIP destinations are handled using our USRLOC DB<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!lookup(&quot;location&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # handle user which was not found<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; route(4);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # if user is on-line and is in voicemail group, enable redirection<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method == &quot;INVITE&quot;&nbsp; || method==&quot;BYE&quot; || method==&quot;ACK&quot;&nbsp; &amp;&amp; isflagset(4)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; setflag(1);&nbsp; # for accounting
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_failure(&quot;1&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>}</p>
<p># ------------- handling of unavailable user ------------------</p>
<p>route[3]{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(1,&quot;route[3]:no user location: foward to voicemail&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewritehostport(&quot;asteriskip:5090&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<br>}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p><br>route[4] {</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # non-Voip -- just send &quot;off-line&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!(method == &quot;INVITE&quot; || method == &quot;ACK&quot; || method == &quot;CANCEL&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;Not Found&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # not voicemail subscriber<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!isflagset(4)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_send_reply(&quot;404&quot;, &quot;Not Found and no voicemail turned on&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # forward to voicemail now<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewritehostport(&quot;asteriskip:5090&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay_to_udp(&quot;asteriskip&quot;, &quot;5090&quot;);<br>}</p>
<p>failure_route[1] {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; revert_uri();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; rewritehostport(&quot;asteriskip:5090&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; append_branch();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay_to_udp(&quot;asteriskip&quot;, &quot;5090&quot;);<br>}<br></p>
<p>&nbsp;</p>
<p>any suggestion will be appriciated</p>
<p>Ram</p></div>