<div>Hi Daniel</div>
<div> </div>
<div>Thank you for your prompt response.</div>
<div> </div>
<div>I have the following entry in the dialplan list:</div>
<div> </div>
<div>Dpid = 1</div>
<div>Match Op = 1<br>Match Exp = sip:3020.*<br>Match Len = 0<br>Subst Exp = sip:(3020)(.+)@<br>ReplExp = sip:3020A\2@xx.xx.xx.xx</div>
<div><br>and i only want to allow the source ip yy.yy.yy.yy to use this specific dialplan and only this dialplan.</div>
<div> </div>
<div>I guess i need to combine the dialplan module and permissions module but im not sure how.</div>
<div> </div>
<div>As i have many entries in my dialplan list, would there be an easy way to achieve the above?</div>
<div> </div>
<div>Thanks again</div>
<div> </div>
<div>Phillip</div>
<div><br> </div>
<div class="gmail_quote">On Wed, Dec 8, 2010 at 12:30 AM, Daniel-Constantin Mierla <span dir="ltr">&lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello, 
<div class="im"><br><br>On 12/7/10 1:35 PM, Phillman25 Kyriacou wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi<br><br>I was wondering if you could help, I am trying to match more than one expression in the dialplan list when a request for an invite is received.<br>
<br>My purpose is to authenticate source ip with the correct prefix so I want to match both prefix+source ip before allowing to proceed with a specific entry in dialplan list.<br></blockquote></div>are you refering here to the dialplan module? Or is it about the dialing plan of your SIP/VoIP service?<br>
<br>If it is about the module, then it can be used to apply regular expression based substitutions, but you can use it for regular expression matching only, which of course includes prefix matching.<br><br>However, you can use modules like mtree or pdt for a faster prefix matching algorithm. To match on ip address, you can use permissions module. By combining such modules you can restrict on prefix-ip as you wish. 
<div class="im"><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>Can that be done using Siremis v2 ?<br></blockquote></div>siremis is just a web management interface. You can use it to provision data for modules such as dialplan or permissions.<br>
<br>Cheers,<br>Daniel<br><font color="#888888"><br>-- <br>Daniel-Constantin Mierla<br>Kamailio (OpenSER) Advanced Training<br>Jan 24-26, 2011, Irvine, CA, USA<br><a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a><br>
<br></font></blockquote></div><br>