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::BLOCKER (3)

.ds Aq ’

NAME

Net::SIP::Blocker - blocks SIP requests based on method name

CONTENTS

SYNOPSIS



  my $block = Net::SIP::Blocker->new(
          block => { SUBSCRIBE => 405, ... => ... },
          dispatcher => $disp,
  );

  my $chain = Net::SIP::ReceiveChain->new(
          [ $block, ... ]
  );



DESCRIPTION

Blocks incoming requests by method name and sends back custom error message.

CONSTRUCTOR

new ( BLOCK,DISPATCHER ) Returns a new blocking object to be used in the chain.

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.

METHODS

receive ( PACKET,LEG,FROM ) PACKET is the incoming packet, LEG is the Net::SIP::Leg where the packet arrived and FROM is the "ip:port" of the sender.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SIP::BLOCKER (3) 2010-07-26

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