Am 05.03.2012 um 15:02 schrieb Lonnie Abelbeck:

> 
> On Mar 5, 2012, at 1:34 AM, Michael Keuter wrote:
> 
>> 
>> Am 04.03.2012 um 23:51 schrieb Lonnie Abelbeck:
>> 
>>> Hi David,
>>> 
>>> This appears to be a new error log in Asterisk 1.8, and the Adaptive Ban 
>>> plugin does not yet catch it.
>>> 
>>> The Asterisk code is:
>>> --
>>> ast_log(LOG_NOTICE, "Call from '%s' (%s) to extension"
>>>     " '%s' rejected because extension not found in context '%s'.\n",
>>>     S_OR(p->username, p->peername), ast_sockaddr_stringify(&p->recv), 
>>> decoded_exten, p->context);
>>> --
>>> So we should be able to easily add this to the Adaptive Ban plugin.
>>> 
>>> Wouldn't it be nice if all of Asterisk's serious error logs had a common 
>>> format, containing the source IP address.
>>> 
>>> Lonnie
>> 
>> 
>> I think that you can also trigger the above message, if you just dial a 
>> non-existing extension as a normal user.
>> 
>> Michael
> 
> Good point Michael.
> 
> Do you think this would be a problem matching the log by the Adaptive Ban 
> plugin ?  The ADAPTIVE_BAN_WHITELIST_INTERNAL=1 should mitigate normal users 
> with fat fingers.
> 
> If this is too general of a log to add to the Adaptive Ban plugin, please 
> comment.
> 
> In Asterisk 1.4, the number of logs with the source IP address was few.
> 
> Lonnie

This is the log message from an internal client (Astlinux 1.02, Ast. 1.8.x):

Mar  5 13:50:39 testbox local0.notice asterisk[322]: NOTICE[381]: 
chan_sip.c:22461 in handle_request_invite: Call from '102' (192.168.1.206:5060) 
to extension '60034711' rejected because extension not found in context 
'default'.

Michael

http://www.mksolutions.info




Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to