<div>Hi Daniel </div>
<div> </div>
<div>Thank you very much for your help! I was able to implement the below scenario succesfully as you advised.</div>
<div> </div>
<div>Regards</div>
<div>Phillip<br><br></div>
<div class="gmail_quote">On Wed, Dec 8, 2010 at 12:41 PM, 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">
<div text="#000000" bgcolor="#ffffff">Hello,<br><br>you can use the permissions module to do ip authentication. Then use the tag value in address table to return what dialplid id (dpid) should be applied for traffic coming from matched ip addresses.<br>
<br>Cheers,<br>Daniel 
<div>
<div></div>
<div class="h5"><br><br>On 12/8/10 7:59 AM, Phillman25 Kyriacou wrote: </div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">
<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 = <a>sip:3020.*</a><br>Match Len = 0<br>Subst Exp = <a>sip:(3020)(.+)@</a><br>ReplExp = <a>sip:3020A\2@xx.xx.xx.xx</a></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" target="_blank">miconda@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hello, 
<div><br><br>On 12/7/10 1:35 PM, Phillman25 Kyriacou wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 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><br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 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></div></div><pre><fieldset></fieldset>
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre></blockquote>
<div class="im"><br><pre cols="72">-- 
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
<a href="http://www.asipto.com/" target="_blank">http://www.asipto.com</a></pre></div></div></blockquote></div><br>