Get help with installing and configuring Blox SBC
Block based on UserAgent and Extn number
maccabee33 Posts: 3
2/23/2018
|
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 Posts: 232
2/23/2018
|
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 Posts: 3
2/23/2018
|
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 Posts: 3
2/23/2018
|
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 Posts: 232
2/25/2018
|
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
|