[SR-Users] Dialplan help
Phillman25 Kyriacou
phillman25 at gmail.com
Wed Dec 8 14:03:53 CET 2010
Hi Daniel
Thank you very much for your help! I was able to implement the below
scenario succesfully as you advised.
Regards
Phillip
On Wed, Dec 8, 2010 at 12:41 PM, Daniel-Constantin Mierla <miconda at gmail.com
> wrote:
> Hello,
>
> 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.
>
> Cheers,
> Daniel
>
>
> On 12/8/10 7:59 AM, Phillman25 Kyriacou wrote:
>
> Hi Daniel
>
> Thank you for your prompt response.
>
> I have the following entry in the dialplan list:
>
> Dpid = 1
> Match Op = 1
> Match Exp = sip:3020.*
> Match Len = 0
> Subst Exp = sip:(3020)(.+)@
> ReplExp = sip:3020A\2 at xx.xx.xx.xx
>
> and i only want to allow the source ip yy.yy.yy.yy to use this specific
> dialplan and only this dialplan.
>
> I guess i need to combine the dialplan module and permissions module but im
> not sure how.
>
> As i have many entries in my dialplan list, would there be an easy way to
> achieve the above?
>
> Thanks again
>
> Phillip
>
>
> On Wed, Dec 8, 2010 at 12:30 AM, Daniel-Constantin Mierla <
> miconda at gmail.com> wrote:
>
>> Hello,
>>
>>
>> On 12/7/10 1:35 PM, Phillman25 Kyriacou wrote:
>>
>>> Hi
>>>
>>> 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.
>>>
>>> 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.
>>>
>> are you refering here to the dialplan module? Or is it about the dialing
>> plan of your SIP/VoIP service?
>>
>> 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.
>>
>> 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.
>>
>>
>>> Can that be done using Siremis v2 ?
>>>
>> siremis is just a web management interface. You can use it to provision
>> data for modules such as dialplan or permissions.
>>
>> Cheers,
>> Daniel
>>
>> --
>> Daniel-Constantin Mierla
>> Kamailio (OpenSER) Advanced Training
>> Jan 24-26, 2011, Irvine, CA, USA
>> http://www.asipto.com
>>
>>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierla
> Kamailio (OpenSER) Advanced Training
> Jan 24-26, 2011, Irvine, CA, USAhttp://www.asipto.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20101208/b7b7e16e/attachment.htm>
More information about the sr-users
mailing list