Query: net::sip::dropper::byfield
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Net::SIP::Dropper::ByField(3pm) User Contributed Perl Documentation Net::SIP::Dropper::ByField(3pm)NAMENet::SIP::Dropper::ByField - drops SIP messages based on fields in SIP headerSYNOPSISmy $drop_by_field = Net::SIP::Dropper::ByField->new( methods => [ 'REGISTER', '...', '' ], 'From' => qr/sip(?:vicious|sscuser)/, 'User-Agent' => qr/^friendly-scanner$/, ); my $dropper = Net::SIP::Dropper->new( cb => $drop_by_field ); my $chain = Net::SIP::ReceiveChain->new([ $dropper, ... ]);DESCRIPTIONWith "Net::SIP::Dropper::ByField" one can drop packets based on the contents of the fields in the SIP header. This can be used to drop specific user agents.CONSTRUCTORnew ( ARGS ) ARGS is a hash with the following keys: methods Optional argument to restrict dropping to specific methods. Is array reference of method names, if one of the names is empty also responses will be considered. If not given all packets will be checked. field-name Any argument other then "methods" will be considered a field name. The value is a callback given to "invoke_callback", like for instance a Regexp.METHODSrun ( PACKET, LEG, FROM ) This method is called as a callback from the Net::SIP::Dropper object. It returns true if the packet should be dropped, e.g. if at least one of the in the constructor specified fields matches the specified value. perl v5.14.2 2011-02-03 Net::SIP::Dropper::ByField(3pm)
Related Man Pages |
---|
net::sip(3pm) - debian |
net::sip::dropper(3pm) - debian |
net::sip::endpoint(3pm) - debian |
net::sip::leg(3pm) - debian |
net::sip::request(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Siproxd 0.6.1 (Stable branch) |
Same IP | Different port | Different MAC |
Can't get local IP address in getaddrinfo |
Port assignment |
Integrating bash shell |