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

<META content="MSHTML 6.00.2800.1458" name=GENERATOR></HEAD>
<BODY>
<P><FONT face=Arial><FONT size=2>Hello,<BR><BR>Thanks Jan, for your 
information.<BR><BR>I use the "grp" table as Marian Dumitru 
Recommandation.<BR><BR></FONT><FONT size=2><EM>if 
(is_user_in("Credentials","PBX1") &amp;&amp; is_user_in("From","PBX1") 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
/*ok*/<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<BR><BR></EM>But how 
can&nbsp;I redirect an incoming&nbsp;call to a member of this group.<BR>Ser 
knows only that ,the Group PABX1 is Registered, and he know is 
IP@.<BR></FONT></FONT><FONT face=Arial><FONT size=2><BR>To do this, i have add 
:</FONT></FONT></P>
<P><FONT face=Arial size=2>if (is_user_in("To","PABX1 
")){<BR><STRONG>forward("62.39.69.11", 5060);&nbsp; 
<BR></STRONG>break;<BR>};</FONT></P>
<P><FONT face=Arial size=2>But i already know the IP@ of the grp PABX1, how can 
i send it without write the IP@ on SER directly.</FONT></P>
<P><FONT face=Arial><FONT size=2>Thank you all for your 
assistance<BR></FONT></FONT><FONT face=Arial><FONT size=2><FONT 
color=#0000ff><BR></FONT><FONT color=#000000>Best 
Regards</FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT size=2>Nicolas RUIZ</P></FONT></FONT>
<P><FONT face=Arial size=2></FONT><BR><FONT size=2>-----Message 
d'origine-----<BR>De : Jan Janak [</FONT><A href="mailto:jan@iptel.org"><FONT 
size=2>mailto:jan@iptel.org</FONT></A><FONT size=2>]<BR>Envoyé : jeudi 7 octobre 
2004 08:29<BR>A : Nicolas Ruiz<BR>Cc : serusers@lists.iptel.org<BR>Objet : Re: 
[Serusers] Associate an USERNAME with more than one Phone Number<BR><BR><BR>Yes, 
you can do it if you enable modparam("uri_db", "use_uri_table", 1)<BR>In this 
case SER will not just compare the username in digest<BR>credentials with the 
username in To/From, but it will use the uri table<BR>in the database to find 
out whether the username in digest credentials<BR>and the username in To/From 
match.<BR><BR>uri tables is a table enumerating all allowed usernames, thus a 
user can<BR>have several different usernames (which are different from 
digest<BR>username and it will still match).<BR><BR>&nbsp; Jan.<BR><BR>On 06-10 
11:22, Nicolas Ruiz wrote:<BR>&gt; Hello,<BR>&gt;<BR>&gt; Is it possible to 
associate an Username with more than one Phone Number ?<BR>&gt;<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 users<BR>&gt; 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;<BR>&gt; That's only good only when the customer send to SER his 
Username and the<BR>&gt; same Phone NUMBER.<BR>&gt;<BR>&gt; Can i set a 
function, who says, with this Username, you are authorize with<BR>&gt; only this 
5 Phone numbers (0155632311,0145265213,0133632211 etc...)<BR>&gt;<BR>&gt; Thanks 
a lot<BR>&gt;<BR>&gt; Regards<BR>&gt;<BR>&gt; Nicolas RUIZ<BR><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><BR></P></BODY></HTML>