<!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>
Thanks for your reply,<BR>
<BR>
i am agree with you people we have to send 480 when user not found.<BR>
what changes i have to do in openser.cfg for that <BR>
<BR>
currently i am using <BR>
<BR>
<FONT COLOR="#0000ff">if (!lookup("location")) {</FONT><BR>
<FONT COLOR="#0000ff"> switch ($retcode) {</FONT><BR>
<FONT COLOR="#0000ff"> case -1:</FONT><BR>
<FONT COLOR="#0000ff"> case -3:</FONT><BR>
<FONT COLOR="#0000ff"> t_newtran();</FONT><BR>
<FONT COLOR="#0000ff"> t_reply("404", "Not Found");</FONT><BR>
<FONT COLOR="#0000ff"> exit;</FONT><BR>
<FONT COLOR="#0000ff"> case -2:</FONT><BR>
<FONT COLOR="#0000ff"> sl_send_reply("405", "Method Not Allowed");</FONT><BR>
<FONT COLOR="#0000ff"> exit;</FONT><BR>
<FONT COLOR="#0000ff"> }</FONT><BR>
<FONT COLOR="#0000ff"> }</FONT><BR>
<BR>
in above we only look into location table. so here we have to reply <BR>
<FONT COLOR="#0000ff"> t_reply("480", "Temporarily Unavailable");</FONT><BR>
<BR>
but now how we can check that user not in the domain so we reply 404<BR>
<BR>
<BR>
<BR>
Thanks & Regards,<BR>
Amit<BR>
<BR>
<BR>
<BR>
<BR>
On Wed, 2008-03-05 at 10:43 +0100, Iñaki Baz Castillo wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">El Wednesday 05 March 2008 10:34:27 Cosimo Fadda escribió:</FONT>
<FONT COLOR="#000000">> Hi Amit,</FONT>
<FONT COLOR="#000000">> you can distinguish this two conditions as suggested from RFC 3261:</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> if (user not found) -> sl_send_reply("480","Temporarily Unavailable");</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">> if (user not exist) -> sl_send_reply("404","NOT Found");</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>