<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>Hi Norman</DIV><DIV>&nbsp;</DIV><DIV>Thank you for your (so fast) anwser !<BR>T black and white liste does not fit for my need.</DIV><DIV>I will look at your documentation with a closer eye tomorrow.</DIV><DIV>Looks good so far.</DIV><DIV>&nbsp;</DIV><DIV>thank you</DIV><DIV>Bernard</DIV><DIV><BR><DIV><BR></DIV><FONT color=#990099>-----Norman Brandinger &lt;norm@goes.com&gt; wrote: -----<BR><BR></FONT><blockquote style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">To: bernard.le@orange-ftgroup.com<BR>From: Norman Brandinger &lt;norm@goes.com&gt;<BR>Date: 08/20/2007 10:58PM<BR>cc: users@openser.org<BR>Subject: Re: [OpenSER-Users] restriction on user (dialer map)<BR><BR><FONT face="Default Monospace,Courier New,Courier,monospace" size=2  >Hi Bernard,<BR><BR>I put together a couple of examples awhile ago and they are located at:<BR><A href="http://www.openser.org/docs/avp_db_query.html" target=blank  >http://www.openser.org/docs/avp_db_query.html</A><BR><BR>If you extend some of the examples and think about &nbsp;perhaps a<BR>"blacklist" table and/or a "whitelist" table it would be just a matter<BR>of checking to see of the ($rU ==        $avp(s:blacklist_entry).<BR><BR>For example:<BR><BR>if (!(avp_db_query("SELECT phone_number &nbsp;FROM blacklist_table WHERE<BR>(phone_number = '$rU')", "$avp(s:blacklist)")) {<BR>&nbsp; &nbsp;# Entry NOT found in blacklist_table<BR>} else {<BR>&nbsp;# Entry FOUND in blacklist_table<BR>}<BR><BR>There are probably a dozen different ways to solve your problem. &nbsp;Your<BR>particular situation will determine the solution that best fits your need.<BR><BR>Regards,<BR>Norm<BR><BR><BR>bernard.le@orange-ftgroup.com wrote:<BR>&gt; Hi<BR>&gt; &nbsp;<BR>&gt; Can someone tell me how it is possible to have a dialer map.<BR>&gt; I mean that I don't know everyone to call everyone.<BR>&gt; I want to restrict a user to call some specific user only.<BR>&gt; &nbsp;<BR>&gt; e.g. :<BR>&gt; A call B<BR>&gt; A call D<BR>&gt; B call C<BR>&gt; D call C<BR>&gt; &nbsp;<BR>&gt; If B call D or A call C, this is not allow<BR>&gt; Of course it looks easy with IF condition but I will have about more<BR>&gt; that 1000 users.<BR>&gt; I thought with mysql, but I can't find documentation or example.<BR>&gt; &nbsp;<BR>&gt; Can someone help me ???<BR>&gt; &nbsp;<BR>&gt; Bernard<BR>&gt; =<BR>&gt; ------------------------------------------------------------------------<BR>&gt;<BR>&gt; *********************************<BR>&gt; This message and any attachments (the "message") are confidential and intended solely for the addressees. <BR>&gt; Any unauthorised use or dissemination is prohibited.<BR>&gt; Messages are susceptible to alteration. <BR>&gt; France Telecom Group shall not be liable for the message if altered, changed or falsified.<BR>&gt; If you are not the intended addressee of this message, please cancel it immediately and inform the sender.<BR>&gt; ********************************<BR>&gt; ------------------------------------------------------------------------<BR>&gt;<BR>&gt; _______________________________________________<BR>&gt; Users mailing list<BR>&gt; Users@openser.org<BR>&gt; <A href="http://openser.org/cgi-bin/mailman/listinfo/users" target=blank  >http://openser.org/cgi-bin/mailman/listinfo/users</A><BR>&gt; &nbsp; <BR><BR></FONT></blockquote><br></DIV></FONT>