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

.ds Aq ’

NAME

Net::SIP::Redirect - Send redirect to Requests based on lookup at a registrar

CONTENTS

SYNOPSIS



  my $reg = Net::SIP::Registrar->new(...);
  my $redir = Net::SIP::Redirect(
        dispatcher => $dispatcher,
        registrar => $reg,
  );



DESCRIPTION

This package implements a simple redirection of Requests using the information provided by a registrar.

CONSTRUCTOR

new ( %ARGS ) This creates a new redirect object, %ARGS can have the following keys:
dispatcher Net::SIP::Dispatcher object manging the registar. Mandatory.
registrar Registrar object. This is an object like a Net::SIP::Registrar, which has a query(address) method which returns a list of contacts.

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. Responses will be send back to the sender through the same leg.

Called from the managing Net::SIP::Dispatcher object if a new packet arrives. Will return () and ignore the packet if it’s an REGISTER request.

For Requests it will query the registrar and return either 302 Moved Temporarily with the list of contacts or 404 Not found if the address is not registered.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::SIP::REDIRECT (3) 2010-05-31

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