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


On Mar 3, 2012, at 7:43 PM, David Kerr wrote:

> Found in my log this evening...
> 
> 
> Mar  3 19:39:58 pbx local0.notice asterisk[3257]: NOTICE[3324]: 
> chan_sip.c:22461 in handle_request_invite: Call from '' (95.130.23.40:5060) 
> to extension '900442032989438' rejected because extension not found in 
> context 'default'.

> ...snip...
> 
> Someone is fishing for an asterisk server that will route international 
> calls.  Make sure you are buttoned up tight.  Should the adaptive-ban 
> firewall plugin have detected this?  Doesn't appear to have... maybe because 
> the firewall let it through and it is asterisk that rejected the request?
> 
> David



------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
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