Do you think instead of using dialplan i can just use Regex like
^(011|\+)[1-9][0-9]{10,14}  to match Source string?  Dialplan is advance
method which use transformation etc.. we we don't need.

We just want to make sure Source address is compliant with ANIs or E.164
standard because out SIP provide doesn't allow random 4 or 5 digit string
in RPID or FROM.

What do you suggest?

On Thu, Apr 30, 2015 at 12:56 PM, Podrigal, Aron <[email protected]>
wrote:

> Have a look here
> http://www.opensips.org/html/docs/modules/1.11.x/dialplan.html#id294016
>
> On Thu, Apr 30, 2015 at 12:49 PM, Satish Patel <[email protected]>
> wrote:
>
>> I believe dialplan only check destination number, doesn't it?  How it
>> will work with Source number which is coming inside RPID/PAI/From: header?
>>
>> On Thu, Apr 30, 2015 at 12:30 PM, Podrigal, Aron <
>> [email protected]> wrote:
>>
>>> You can use the dialplan module to check against valid ANIs and reply
>>> with a 403.
>>>
>>> On Thu, Apr 30, 2015 at 12:09 PM, Satish Patel <[email protected]>
>>> wrote:
>>>
>>>> Question: what happen if client send call using random string in
>>>> RPID/PAI/From header (non-standard ANIs)  How to verify ANIs for those
>>>> headers? is there a blacklist or any method which scan ANIs for source and
>>>> block them?
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> [email protected]
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>> --
>>> Aron Podrigal
>>> -
>>> //Be happy :-)
>>>
>>> _______________________________________________
>>> Users mailing list
>>> [email protected]
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Aron Podrigal
> -
> //Be happy :-)
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to