[OpenSIPS-Users] ANIs check for source number
    Satish Patel 
    satish.txt at gmail.com
       
    Thu Apr 30 19:07:30 CEST 2015
    
    
  
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 <aronp at guaranteedplus.com>
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 <satish.txt at gmail.com>
> 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 <
>> aronp at guaranteedplus.com> 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 <satish.txt at gmail.com>
>>> 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
>>>> Users at lists.opensips.org
>>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>>
>>>>
>>>
>>>
>>> --
>>> Aron Podrigal
>>> -
>>> //Be happy :-)
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>>
>>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> Aron Podrigal
> -
> //Be happy :-)
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20150430/655c9a9b/attachment-0001.htm>
    
    
More information about the Users
mailing list