<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR>
<STYLE type=text/css>BODY {
        FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma'; font-color: '#000000'
}
LI {
        DISPLAY: list-item; MARGIN: 0in
}
P {
        DISPLAY: block; MARGIN: 0in
}
BODY {
        
}
</STYLE>
</HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>Hello,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>I also want to do the same thing as Tung -- I want to know if the
caller URI is registered.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>My current ser.cfg (based on the SER 2.0 RC1 sample ser.cfg),
calls a proxy_authenticate for every message. This means the every message
(other than register) is sent twice, once without auth headers and a 2nd time
with auth headers.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>An easier approach would be send the auth challenge during a
register message and simply check if the caller is registered in subsequent
messages. If the caller did not re-register within the expiration
interval, their request would be rejected.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>Is there a method to check of the caller (from) URI is
registered?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007><FONT face=Arial
color=#0000ff>- Ravin</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=985254005-13092007></SPAN> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> serusers-bounces@lists.iptel.org
[mailto:serusers-bounces@lists.iptel.org] <B>On Behalf Of </B>Tung
Tran<BR><B>Sent:</B> Thursday, September 13, 2007 1:24 AM<BR><B>To:</B> Michal
Matyska<BR><B>Cc:</B> serusers@lists.iptel.org<BR><B>Subject:</B> Re:
[Serusers] How to check the username if it is registered or
not<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">Hi,</SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN style="FONT-SIZE: 10pt">I got this in iptel doc:</SPAN></DIV>
<DIV> </DIV>
<DIV style="MARGIN-TOP: 0.07in"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'"><B>registered(domain)
</B></SPAN></DIV>
<DIV style="MARGIN-TOP: 0.07in"><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">The function returns
true if the AOR in the Request-URI is registered, false otherwise. The
function does not modify the message being process, it neither rewrites the
Request-URI if a contact is found not append branches. </SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">But I want
to check the from user if it is registered or not, any command can do
this?</SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">Thank
you</SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'">Tung</SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN style="FONT-SIZE: 10pt"><BR><BR></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">> if
(registered("location")) {</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">> ..</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">> }</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">> M.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: navy">> On Thu, 2007-09-13 at
00:12 +0700, Tung Tran wrote:</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>> Hi
all,</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>> Should anyone
please help how to check the from user in INVITE</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>> request is already
registered?</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>> Thanks you very
much.</SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; COLOR: maroon">>>
Tung</SPAN></DIV></BLOCKQUOTE></BODY></HTML>