blox

   

HomeBLOX Support

Get help with installing and configuring Blox SBC

Block based on UserAgent and Extn number Messages in this topic - RSS

maccabee33
maccabee33
Posts: 3


2/23/2018
maccabee33
maccabee33
Posts: 3
Hi,

Can someone let me know how/if its possible to block based on UserAgent and if you can use for example regular expression to specify a range of extns numbers that register within a SIP domain?

Thanks
0 link
bloxsupport1
bloxsupport1
Posts: 232


2/23/2018
bloxsupport1
bloxsupport1
Posts: 232
You can add useragent to the file /etc/blox/sipua.cfg to block (apply changes required)
For extns, you need to configure SIP header manipuation
0 link
maccabee33
maccabee33
Posts: 3


2/23/2018
maccabee33
maccabee33
Posts: 3
bloxsupport1 wrote:
You can add useragent to the file /etc/blox/sipua.cfg to block (apply changes required)
For extns, you need to configure SIP header manipuation



Perfect thank you!!
0 link
maccabee33
maccabee33
Posts: 3


2/23/2018
maccabee33
maccabee33
Posts: 3
Sorry is there a way to set the SIPUA.cfg so its an allow list rather than block. So I can allow one UA and block the rest ?
0 link
bloxsupport1
bloxsupport1
Posts: 232


2/25/2018
bloxsupport1
bloxsupport1
Posts: 232
after updating sipua.cfg (allow list)

In file /etc/blox/blox.cfg.m4

if ($ua && pcre_match_group("$ua", "0"))

change this to

if ($ua && !pcre_match_group("$ua", "0"))

NOTE: apply changes required
edited by bloxsupport1 on 2/25/2018
0 link






Powered by blox.org 1.0.0.0 © 2015