<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE></TITLE>

<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<P><FONT size=2><FONT face=Arial>Hi,<BR><BR>For me, you have the DIGEST USERNAME 
for REGISTRATION (mysql Account with a password)<BR>And the username "phone 
number" : for example : FROM sip:<FONT 
color=#ff0000>123145</FONT>@domain.<BR><BR>And I want to do: One Digest USERNAME 
can make calls with 5 or 6 username for example or use another Security 
Authentification.<BR><BR>I have read in Ser Admin's Guide, page 29:<BR><BR><FONT 
size=2><EM>Even it authentication is turned on, there is no relationship between 
authentication username and address of<BR>record. That means that for example a 
user authenticating himself correctly with <STRONG>"john.doe"</STRONG> id may 
register<BR><STRONG>contacts for "gw.bush".</STRONG> Site policy may wish to 
mandate authentication id to be equal to username claimed in<BR>To header field. 
check_to action from auth module can be used to enforce such a 
policy.</EM></FONT></FONT></FONT></P>
<DIV><FONT size=2><FONT face=Arial>Because if i dont' use the function 
"check_from", a customer can make call with an other Phone Number of an other 
Customer.</FONT></FONT></DIV>
<P><FONT face=Arial size=2>If I use Disget Auth with the function "check_from", 
only a custmer with Digest USERNAME == Contact ID can make call &gt;&gt; It's 
good.<BR><BR>But if I have a PABX with a GW sip who have only one DIGEST 
USERNAME,the phones who are behind teh PABX can't make calls because they are 
stopped by SER (FUNCTION "check_from",)<BR><BR>Thanks a lot for your 
help.</FONT><FONT face=Arial><BR><BR><FONT size=2>NICOLAS RUIZ<BR></FONT><FONT 
size=2><BR></FONT></FONT><BR><BR><BR><FONT size=2>-----Message 
d'origine-----<BR>De : Marian Dumitru [</FONT><A 
href="mailto:marian.dumitru@voice-sistem.ro"><FONT 
size=2>mailto:marian.dumitru@voice-sistem.ro</FONT></A><FONT size=2>]<BR>Envoyé 
: mercredi 6 octobre 2004 12:53<BR>À : Nicolas Ruiz<BR>Cc : 
serusers@lists.iptel.org<BR>Objet : Re: [Serusers] Associate an USERNAME with more 
than one Phone<BR>Number<BR><BR><BR>Hi there,<BR><BR>What's exactly do you 
understand by "username" and "phone number"?<BR>AFAIK, in SIP, there is only the 
username (like sip:username@domain")<BR>and some possible aliases.<BR><BR>Best 
regards,<BR>Marian<BR><BR><BR><BR>Nicolas Ruiz wrote:<BR>&gt; 
Hello,<BR>&gt;&nbsp;<BR>&gt; Is it possible to associate an Username with more 
than one Phone Number ?<BR>&gt;&nbsp;<BR>&gt; I have use this function to secure 
SER&nbsp; :<BR>&gt; if (!check_from()) 
{<BR>&gt;&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("403", "Only registered<BR>&gt; users are 
allowed");<BR>&gt;&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; 
break;<BR>&gt;&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;&nbsp; 
};<BR>&gt;&nbsp;<BR>&gt; That's only good only when the customer send to SER his 
Username and the<BR>&gt; same Phone NUMBER.<BR>&gt;&nbsp;<BR>&gt; Can i set a 
function, who says, with this Username, you are authorize<BR>&gt; with only this 
5 Phone numbers (0155632311,0145265213,0133632211 etc...)<BR>&gt;&nbsp;<BR>&gt; 
Thanks a lot<BR>&gt;&nbsp;<BR>&gt; Regards<BR>&gt;&nbsp;<BR>&gt; Nicolas 
RUIZ<BR>&gt;<BR>&gt;<BR>&gt; 
------------------------------------------------------------------------<BR>&gt;<BR>&gt; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; serusers@lists.iptel.org<BR>&gt; </FONT><A 
href="http://lists.iptel.org/mailman/listinfo/serusers" target=_blank><FONT 
size=2>http://lists.iptel.org/mailman/listinfo/serusers</FONT></A> 
</P></BODY></HTML>