[Spce-user] User-Agent string pattern for config.yml

Andrew Pogrebennyk apogrebennyk at sipwise.com
Thu Dec 20 09:15:31 EST 2018

Hello Matthias, 
you can try with: 
action: reject 
enable: etc 
mode: blacklist 
- "friendly-scanner" 
- "^sipcli.+" 
- "sipvicious" 

Hope this helps. 

----- Original Message -----

From: "Hohl Matthias" <matthias.hohl at telematica.at> 
To: spce-user at lists.sipwise.com 
Sent: Friday, December 14, 2018 12:50:16 PM 
Subject: [Spce-user] User-Agent string pattern for config.yml 


can you tell me how the string has to look like? 

· kamailio.proxy.block_useragents.ua_patterns: List of User-Agent string patterns that trigger the block action. 

Currently I block it directly in /etc/ngcp-config/templates/etc/kamailio/lb/kamailio.cfg.customtt.tt2 with this string: 

if( is_method("REGISTER|INVITE") && ($ua =~ "friendly-scanner" || $ua =~ "friendly-request" || $ua =~ "sipvicious" || $ua =~ "^sipcli.+") ) 

how I had to add it in the config.yml file? 


Thank you 

Spce-user mailing list 
Spce-user at lists.sipwise.com 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20181220/1c67ef4b/attachment-0001.html>

More information about the Spce-user mailing list