Net::SIP::Blocker(3pm) | User Contributed Perl Documentation | Net::SIP::Blocker(3pm) |
Net::SIP::Blocker - blocks SIP requests based on method name
my $block = Net::SIP::Blocker->new( block => { 'SUBSCRIBE' => 405, '...' => ... }, dispatcher => $disp, ); my $chain = Net::SIP::ReceiveChain->new( [ $block, ... ] );
Blocks incoming requests by method name and sends back custom error message.
BLOCK is a hash reference where the keys are the methods to be blocked and their values are the reason why the method was blocked. The reason is the three digit code, optionally followed by a text.
DISPATCHER is a Net::SIP::Dispatcher object.
2023-02-04 | perl v5.36.0 |