<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

                                                                <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="EXPIRESABSOLUTE" CONTENT="Tue, 01 Jun 1999 12:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<TITLE></TITLE>

<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
                                                        <BODY >
                                                                <DIV><!-- Converted from text/plain format -->
<P><FONT size=2>Hi,<BR><BR>Thanks for your reply. Unfortunately I couldn't 
understand that configuration.<BR>What do you mean by (!src_ip=="other") ? What 
is "other" ?<BR>What does t_replicate() do ?<BR>What does proxy_authorize() do 
?<BR><BR>Thanks,<BR>ilker<BR><BR><BR>-----Original Message-----<BR>From: 
serusers-bounces@lists.iptel.org [<A 
href="mailto:serusers-bounces@lists.iptel.org">mailto:serusers-bounces@lists.iptel.org</A>] 
On Behalf Of Victor Stanescu<BR>Sent: Monday, July 10, 2006 1:49 PM<BR>Cc: 
serusers@iptel.org<BR>Subject: Re: [Serusers] prevent INVITE without 
REGISTERing<BR><BR>Please read "domain" instead of "gtstelecom.ro": 
www_authorize("domain",<BR>"subscriber") and proxy_authorize("domain", 
"subscriber"), otherwise the code fragment will not be correct. I forgot to 
replace with a generic name.<BR><BR>Victor Stanescu wrote:<BR>&gt; I think it is 
easier to force him to authenticate the INVITE. If he is<BR>&gt; able to 
authenticate the INVITE, why do you care if he is registered<BR>&gt; or 
not?<BR>&gt;<BR>&gt; if (method=="REGISTER") {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
if(!src_ip=="other") {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
if (!www_authorize("gtstelecom.ro", "subscriber")) 
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
www_challenge("domain", 
"0");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
save("location");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
log("Replicating 
REGISTER\n");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
t_replicate("other", "5060");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; } else 
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
save("location");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; 
};<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&gt; } else 
{<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; # this is an 
INVITE<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; if (!proxy_authorize("gtstelecom.ro", 
"subscriber")) {<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
proxy_challenge("domain", 
"1");<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
break;<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; };<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; # 
route the call<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; ...<BR>&gt; };<BR>&gt;<BR>&gt; 
&#304;lker Aktuna (Ko&#231;.net) wrote:<BR>&gt;&gt;<BR>&gt;&gt; Hi 
all,<BR>&gt;&gt;&nbsp;<BR>&gt;&gt; Is it possible to prevent any user calling 
without registering ? What<BR>&gt;&gt; is the best way to do this ?<BR>&gt;&gt; 
I guess I'll have to check if the source URI exists in location 
table.<BR>&gt;&gt; What is the easiest way to do this 
?<BR>&gt;&gt;&nbsp;<BR>&gt;&gt; If there is a more robust way to do it, please 
suggest...<BR>&gt;&gt;&nbsp;<BR>&gt;&gt; Thanks,<BR>&gt;&gt; 
ilker<BR>&gt;&gt;&nbsp;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; 
&lt;http://387555.sigclick.mailinfo.com/sigclick/000F0500/07044803/01000<BR>&gt;&gt; 
749/0023725214.jpg&gt;<BR>&gt;&gt;<BR>&gt;&gt; 
_____________________________________________________________________<BR>&gt;&gt; 
_____________________________________________________________________<BR>&gt;&gt; 
___<BR>&gt;&gt;<BR>&gt;&gt; Bu e-posta mesaji kisiye ozel olup, gizli bilgiler 
iceriyor olabilir.<BR>&gt;&gt; Eger bu e-posta mesaji size yanlislikla 
ulasmissa,&nbsp; icerigini hic bir<BR>&gt;&gt; sekilde kullanmayiniz ve ekli 
dosyalari acmayiniz. Bu durumda lutfen<BR>&gt;&gt; e-posta mesajini kullaniciya 
hemen geri gonderiniz&nbsp; ve&nbsp; tum<BR>&gt;&gt; kopyalarini mesaj 
kutunuzdan siliniz. Bu e-posta mesaji, hic bir<BR>&gt;&gt; sekilde, herhangi bir 
amac icin cogaltilamaz, yayinlanamaz ve para<BR>&gt;&gt; karsiligi 
satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus<BR>&gt;&gt; 
sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta<BR>&gt;&gt; 
mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile -<BR>&gt;&gt; 
virus icermedigini garanti etmez ve meydana gelebilecek zararlardan<BR>&gt;&gt; 
dogacak hicbir sorumlulugu kabul etmez.<BR>&gt;&gt; This message is intended 
solely for the use of the individual or<BR>&gt;&gt; entity to whom it is 
addressed , and may contain confidential<BR>&gt;&gt; information. If you are not 
the intended recipient of this message or<BR>&gt;&gt; you receive this mail in 
error, you should refrain from making any<BR>&gt;&gt; use of the contents and 
from opening any attachment. In that case,<BR>&gt;&gt; please notify the sender 
immediately and return the message to the<BR>&gt;&gt; sender, then, delete and 
destroy all copies. This e-mail message, can<BR>&gt;&gt; not be copied, 
published or sold for any reason. This e-mail message<BR>&gt;&gt; has been swept 
by anti-virus systems for the presence of computer<BR>&gt;&gt; viruses. In doing 
so, however,&nbsp; sender&nbsp; cannot warrant that virus or<BR>&gt;&gt; other 
forms of data corruption may not be present and do not take any<BR>&gt;&gt; 
responsibility in any occurrence.<BR>&gt;&gt; 
_____________________________________________________________________<BR>&gt;&gt; 
_____________________________________________________________________<BR>&gt;&gt; 
___<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; 
---------------------------------------------------------------------<BR>&gt;&gt; 
---<BR>&gt;&gt;<BR>&gt;&gt; 
_______________________________________________<BR>&gt;&gt; Serusers mailing 
list<BR>&gt;&gt; Serusers@lists.iptel.org<BR>&gt;&gt; <A 
href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A><BR>&gt; 
_______________________________________________<BR>&gt; Serusers mailing 
list<BR>&gt; Serusers@lists.iptel.org<BR>&gt; <A 
href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A><BR>_______________________________________________<BR>Serusers 
mailing list<BR>Serusers@lists.iptel.org<BR><A 
href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</A><BR></FONT></P>
<!--445D5241795C-->
<br><br><a href="http://387555.sigclick.mailinfo.com/sigclick/05090007/04014D06/0406014E/0376172141.jpg"><img src="http://387555.signature1.mailinfo.com/confirm2.6/05090007/04014D06/0406014E/0376172141.jpg" border="0" nosend="1"></a><!--445D5241795C//--></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></BODY></HTML>