GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::SIP::DROPPER::BYFIELD (3)

.ds Aq ’

NAME

Net::SIP::Dropper::ByField - drops SIP messages based on fields in SIP header

CONTENTS

SYNOPSIS



        my $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, ... ]);



DESCRIPTION

With 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.

CONSTRUCTOR

new ( 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.

METHODS

run ( 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.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SIP::DROPPER::BYFIELD (3) 2011-02-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.