[OpenSER-Users] "user not found" and "user not exist"
Amit Vijayvargiya
amit.v at pyronetworks.com
Mon Mar 10 11:11:26 CET 2008
Hi,
Thanks for your reply,
i am agree with you people we have to send 480 when user not found.
what changes i have to do in openser.cfg for that
currently i am using
if (!lookup("location")) {
switch ($retcode) {
case -1:
case -3:
t_newtran();
t_reply("404", "Not Found");
exit;
case -2:
sl_send_reply("405", "Method Not
Allowed");
exit;
}
}
V
'
T
PL
0
!
in above we only look into location table. so here we have to reply
t_reply("480", "Temporarily Unavailable");
but now how we can check that user not in the domain so we reply 404
Thanks & Regards,
Amit
On Wed, 2008-03-05 at 10:43 +0100, Iñaki Baz Castillo wrote:
> El Wednesday 05 March 2008 10:34:27 Cosimo Fadda escribió:
> > Hi Amit,
> > you can distinguish this two conditions as suggested from RFC 3261:
> >
> > if (user not found) -> sl_send_reply("480","Temporarily Unavailable");
>
> Yeah, the point here is:
>
> 480 Temporarily Unavailable
> [...]
> This status is also returned by a redirect or proxy server that
> recognizes the user identified by the Request-URI, but does not
> currently have a valid forwarding location for that user.
>
> > if (user not exist) -> sl_send_reply("404","NOT Found");
>
> 404 Not Found
> The server has definitive information that the user does not exist at
> the domain specified in the Request-URI.
> [...]
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080310/8de0dd6d/attachment.htm
More information about the Users
mailing list