<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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<br>
<br>
On 12/8/10 7:59 AM, Phillman25 Kyriacou wrote:
<blockquote
cite="mid:AANLkTi=75bnUhQ-PS-qB7T1o4G=cvc30ysVDc6gtsk3B@mail.gmail.com"
type="cite">
<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 class="moz-txt-link-freetext" href="sip:3020.*">sip:3020.*</a><br>
Match Len = 0<br>
Subst Exp = <a class="moz-txt-link-freetext" href="sip:(3020)(.+)@">sip:(3020)(.+)@</a><br>
ReplExp = <a class="moz-txt-link-freetext" href="sip:3020A\2@xx.xx.xx.xx">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"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204);
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: 1px solid rgb(204, 204,
204); 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: 1px solid rgb(204, 204,
204); 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 moz-do-not-send="true" href="http://www.asipto.com/"
target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote>
</div>
<br>
<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
Jan 24-26, 2011, Irvine, CA, USA
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a></pre>
</body>
</html>