<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I can think of two ways to to that.</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">1) You can simply use the acl, add the two users that you want to be able to make international calls to the international acl with "openserctl acl grant <I>username</I> international"</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Then in the route you use for international calls you do something like ...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> if (!is_user_in("From", "int")){</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">                                sl_send_reply("401", "Unauthorized-acl");</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">                                exit;</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">} else {</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><I>whatever else</I>........</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">2) Use the lcr module it will let you specify a source regular expression to match against. </DIV><BR><DIV><DIV>On Jun 12, 2006, at 1:25 PM, ram wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV>Hi</DIV> <DIV> </DIV> <DIV>iam not using any Radius</DIV> <DIV>just working mysql authentication build one</DIV> <DIV> </DIV> <DIV>looking for script which can check some kind of allow method and route accordingly</DIV> <DIV> </DIV> <DIV>ram<BR><BR> </DIV> <DIV><SPAN class="gmail_quote">On 6/12/06, <B class="gmail_sendername">Edson</B> &lt;<A href="mailto:4lists@gmail.com">4lists@gmail.com</A>&gt; wrote:</SPAN> <BLOCKQUOTE class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"> <DIV> <DIV lang="PT-BR" vlink="purple" link="blue"> <DIV><P><FONT face="Arial" color="navy" size="2"><SPAN lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Try to look on Radius Authorization schema... it will allow You to implement all sort of filtering policies… </SPAN></FONT></P><DIV><FONT face="Arial" color="navy" size="2"><SPAN lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV><P><FONT face="Arial" color="navy" size="2"><SPAN lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Edson.</SPAN></FONT></P><DIV><FONT face="Arial" color="navy" size="2"><SPAN lang="EN-US" style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV> <DIV style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none"> <DIV> <DIV style="TEXT-ALIGN: center" align="center"><FONT face="Times New Roman" size="3"><SPAN lang="EN-US" style="FONT-SIZE: 12pt"> <HR align="center" width="100%" size="2"> </SPAN></FONT></DIV><P><B><FONT face="Tahoma" size="2"><SPAN lang="EN-US" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face="Tahoma" size="2"><SPAN lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users-bounces@openser.org" target="_blank">users-bounces@openser.org</A> [mailto:<A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users-bounces@openser.org" target="_blank"> users-bounces@openser.org</A>] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>ram<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> domingo, 11 de junho de 2006 14:28<BR><B><SPAN style="FONT-WEIGHT: bold"> To:</SPAN></B> <A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:users@openser.org" target="_blank">users@openser.org</A><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Users] Allow only perticular country </SPAN></FONT><SPAN lang="EN-US"></SPAN></P></DIV></DIV> <DIV><SPAN class="e" id="q_10bc864fb742e7ad_1"><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">Hi all</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">Just working around with openser</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">just looking config, and had one requirement</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">I have users 3</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">i want 1 and 2 can access calls where ever they can</SPAN></FONT></P></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">but 3 need to call only USA, and he should not get access to rest of the place</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">can some one give me idea, how can i achive this</SPAN></FONT></P></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">or any sample config</SPAN></FONT></P></DIV> <DIV><DIV><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT><BR class="khtml-block-placeholder"></DIV></DIV> <DIV><P><FONT face="Times New Roman" size="3"><SPAN style="FONT-SIZE: 12pt">ram</SPAN></FONT></P></DIV></SPAN></DIV> <DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:Users@openser.org">Users@openser.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>