[Spce-user] Upgrade from 5.5.5 to 6.5.3 - Block Useragent Edit

Alex Lutay alutay at sipwise.com
Wed Mar 20 06:46:47 EDT 2019


Hi,
On 3/20/19 11:40 AM, Hohl Matthias wrote:
> Oh okay thank you. In version 6.5.3 I didn’t found this information in
> the handbook 😊

Correct, it is new documentation and has been backported to mr6.5 LTS
already. It will be the part of the next mr6.5 build: mr6.5.4

> Thanks again. BTW: the xlog entry is also there then if something got
> blocked?

You can check it in kamailio tt2 config yourself ;-)

>                 if([% IF kamailio.proxy.block_useragents.mode == "whitelist" %]![% END %]([% FOREACH item IN kamailio.proxy.block_useragents.ua_patterns -%]$x_hdr(User-Agent) =~ "[% item %]"[% IF kamailio.proxy.block_useragents.ua_patterns.last != item %] || [% END %][% END -%]))
>                 {
>                         xlog("L_INFO", "Request rejected, bad UA='$x_hdr(User-Agent)' - [% logreq_init -%]\n");

-- 
Alex Lutay



More information about the Spce-user mailing list