<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
On 5/17/10 2:26 PM, Asim Riaz wrote:
<blockquote
 cite="mid:AANLkTilhvpgeORlVpXrttLlFNZbcqrGWhA-3eDx9c5ET@mail.gmail.com"
 type="cite">
  <p class="MsoNormal">Hello List,<br>
from the documentation, permissions.allow, allows the calls either by
matching
From-URI or R-URI and permission.deny denies the call from matching uri.<br>
  </p>
</blockquote>
<br>
the matching is done on both From-URI and R-URI -- like allow call from
X to Y<br>
<blockquote
 cite="mid:AANLkTilhvpgeORlVpXrttLlFNZbcqrGWhA-3eDx9c5ET@mail.gmail.com"
 type="cite">
  <p class="MsoNormal">Do I need to divide the file into different
sections, for R-URI and for
From-URI?</p>
</blockquote>
<br>
The format is:<br>
<br>
From-URI-RegExpList : R-URI-RegExpList<br>
<br>
See the sources, modules_k/permissions/config/ for some examples.<br>
<br>
<blockquote
 cite="mid:AANLkTilhvpgeORlVpXrttLlFNZbcqrGWhA-3eDx9c5ET@mail.gmail.com"
 type="cite">
  <p class="MsoNormal"> Not sure exact syntax could someone explain me
that if I want to
match in permissions.allow <span style="">&nbsp;</span>if a phone
10.10.10.10 dial(r-uri) 1234 allow it and everything else is blocked?
What is
the preference does kamailio check for permissions.deny first if there
is no matching
  <span style="">&nbsp;</span>then checks permissions.allow?<br>
  </p>
</blockquote>
<br>
First is checked the allow file, if an entry is matched the the call is
allowed, if no match, then deny file is checked, if an entry is
matched, the call is denied. If no match then the call is allowed.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
 cite="mid:AANLkTilhvpgeORlVpXrttLlFNZbcqrGWhA-3eDx9c5ET@mail.gmail.com"
 type="cite">
  <p class="MsoNormal"><br>
Thanks in advance,<br>
  <br>
Asim</p>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Miami, Fl, USA - June 21-23, 2010
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a>
</pre>
</body>
</html>