<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
</HEAD>
<BODY>
Hi,<BR>
<BR>
&nbsp;&nbsp;&nbsp; Thanks for your reply,<BR>
&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp; i am agree with you people we have to send 480 when user not found.<BR>
&nbsp;&nbsp;&nbsp; what changes i have to do in openser.cfg for that <BR>
<BR>
&nbsp;&nbsp;&nbsp; currently i am using <BR>
<BR>
&nbsp;&nbsp;&nbsp; <FONT COLOR="#0000ff">if (!lookup(&quot;location&quot;)) {</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; switch ($retcode) {</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case -1:</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case -3:</FONT><BR>
<FONT COLOR="#0000ff">&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; t_newtran();</FONT><BR>
<FONT COLOR="#0000ff">&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; t_reply(&quot;404&quot;, &quot;Not Found&quot;);</FONT><BR>
<FONT COLOR="#0000ff">&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; exit;</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; case -2:</FONT><BR>
<FONT COLOR="#0000ff">&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; sl_send_reply(&quot;405&quot;, &quot;Method Not Allowed&quot;);</FONT><BR>
<FONT COLOR="#0000ff">&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; exit;</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT><BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</FONT><BR>
<BR>
&nbsp;&nbsp;&nbsp; in above we only look into location table. so here we have to reply <BR>
<FONT COLOR="#0000ff">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_reply(&quot;480&quot;, &quot;Temporarily Unavailable&quot;);</FONT><BR>
&nbsp;&nbsp;&nbsp; <BR>
&nbsp;&nbsp;&nbsp; but now how we can check that user not in the domain so we reply 404<BR>
<BR>
<BR>
<BR>
Thanks &amp; Regards,<BR>
Amit<BR>
<BR>
<BR>
<BR>
<BR>
On Wed, 2008-03-05 at 10:43 +0100, I&#241;aki Baz Castillo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">El Wednesday 05 March 2008 10:34:27 Cosimo Fadda escribi&#243;:</FONT>
<FONT COLOR="#000000">&gt; Hi Amit,</FONT>
<FONT COLOR="#000000">&gt; you can distinguish this two conditions as suggested from RFC 3261:</FONT>
<FONT COLOR="#000000">&gt;</FONT>
<FONT COLOR="#000000">&gt; if (user not found) -&gt; sl_send_reply(&quot;480&quot;,&quot;Temporarily Unavailable&quot;);</FONT>

<FONT COLOR="#000000">Yeah, the point here is:</FONT>

<FONT COLOR="#000000"> 480 Temporarily Unavailable</FONT>
<FONT COLOR="#000000">   [...]</FONT>
<FONT COLOR="#000000">   This status is also returned by a redirect or proxy server that</FONT>
<FONT COLOR="#000000">   recognizes the user identified by the Request-URI, but does not</FONT>
<FONT COLOR="#000000">   currently have a valid forwarding location for that user.</FONT>

<FONT COLOR="#000000">&gt; if (user not exist) -&gt; sl_send_reply(&quot;404&quot;,&quot;NOT Found&quot;);</FONT>

<FONT COLOR="#000000"> 404 Not Found</FONT>
<FONT COLOR="#000000">   The server has definitive information that the user does not exist at</FONT>
<FONT COLOR="#000000">   the domain specified in the Request-URI.</FONT>
<FONT COLOR="#000000">   [...]</FONT>



</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>