On Mar 5, 2012, at 8:14 AM, David Kerr wrote: > James, > Interesting idea about catching it in the dialplan/default context. If > scanning persists then I might just add this. > > Thanks, > David
When banning IP's from the dialplan, I'd suggest using the following syntax rather than calling "iptables" from the dialplan. -- ; For Asterisk 1.4 exten => s,n,Set(BANIP=${SIPCHANINFO(recvip)}) exten => s,n,Log(NOTICE,\'${BANIP}\' - Dialplan Noted Suspicious IP Address) ; For Asterisk 1.6/1.8 exten => s,n,Set(BANIP=${CHANNEL(recvip)}) exten => s,n,Log(NOTICE,'${BANIP}' - Dialplan Noted Suspicious IP Address) -- We added "Dialplan Noted Suspicious IP Address" support to the Adaptive Ban plugin about a year ago. Make sure you test it. Lonnie ------------------------------------------------------------------------------ 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.