Net::SIP::NATHelper::Local(3pm) User Contributed Perl Documentation Net::SIP::NATHelper::Local(3pm)NAME
Net::SIP::NATHelper::Local - handle NAT/RTP forwarding in local event loop.
DESCRIPTION
This module is a wrapper around Net::SIP::NATHelper::Base which will handle the RTP forwarding within the local event loop the rest of
Net::SIP uses.
CONSTRUCTOR
new ( LOOP )
Will create the object and tell it to use LOOP as the event loop. Will create a Net::SIP::NATHelper::Base object which gets used
internally.
METHODS
allocate_sockets ( ... )
Calls allocate_sockets of the local Net::SIP::NATHelper::Base object. Takes and returns the same arguments.
activate_session ( ... )
Calls activate_session of the local Net::SIP::NATHelper::Base object. Takes the same arguments and returns 1 if the session was newly
activated, -1 if it was activated before and false if activation failed. Updates callbacks into the event loop.
close_session ( ... )
Calls activate_session of the local Net::SIP::NATHelper::Base object. Takes the same arguments and returns the number of closed
sessions. Updates callbacks into the event loop.
expire ( ... )
Calls expire of the local Net::SIP::NATHelper::Base object. Takes the same arguments and returns the number of expired sessions.
Updates callbacks into the event loop if necessary.
perl v5.14.2 2009-01-23 Net::SIP::NATHelper::Local(3pm)
Check Out this Related Man Page
Net::SIP::Redirect(3pm) User Contributed Perl Documentation Net::SIP::Redirect(3pm)NAME
Net::SIP::Redirect - Send redirect to Requests based on lookup at a registrar
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.
perl v5.14.2 2010-05-31 Net::SIP::Redirect(3pm)
Hi,
Working on AIX using the following for loop.
for a in `find /edi/iTracTEST/sessions -name nohup.out -print`
do
echo $a
done
On the command line it works fine, but insert the code in a file and then running it, it does not want to work. I get the following back.
' is not... (3 Replies)
Hey guys, new Unix learner here. I'm trying to figure out how to use/implement this UNTIL loop but all the examples I've seen from notes isn't very understandable!
So if anyone can help me out I appreciate it!
Here's an example I looked at:
clear
print -n "Type in a file name : "
read... (2 Replies)
my $i;
my $j;
for($i=1;$i<=5;$i++)
{
for($j=$i;$j<5;$j++)
{
print " ";
}
print "$i\n";
}
But the output i need is
1
12
123
1234
12345
Help me please (5 Replies)
Dear All,
i facing problem to use string having spaces in for loop..
file used for FOR LOOP
command.txt
rpm -t -v ttm -D -r RJLL -h YELP
rpm -t -v ttm -D -r RJLL -h ERRT
rpm -t -v ttm -D -r RJLL -h TYYE
rpm -t -v ttm -D -r RJLL -h POOL
CODE using for execute above command... (3 Replies)
Hi,
I've a requirement where I want to re-assign the value in the variable through which FOR LOOP loops.
For e.g.
Snippet of code
---------------
for i in $var
do
echo $i >> $tempFile
var=`echo $another_var | awk -F" " '{print $1}'`
done
I am re-assigning var so... (2 Replies)
Hello, how can I create a for loop do change the name of hdisks. For example the name of the Disks are hdisk2 - hdisk15 and should be rename to PROD_15_S
Thanks a lot! (3 Replies)
Hello all,
I meet a "strange" situation, at least for me, and i want your opinion.
I have a node used as SIP B2BUA (node A) and i have the following issue.
SIP messages does not reach a client node (node B) but ICMP do.
I see in the pcap that SIP and ICMP messages have different destination... (3 Replies)
Hi all,
I am working with SIP protocol and am using SIPp to generate SIP traffic.
But the call is not going through since I get the error;
2015-02-24 14:09:39:330 1424804979.330517: Can't get local IP address in getaddrinfo, local_host='NODE-01', local_ip=''.
My ifconfig output is;
... (2 Replies)
I have Existing FOR loop in script like below. But the zip should happen for only those years in another file generated dynamically.
Existing FOR LOOP -
for i in XYZ_*ABC${YEAR_2014}.csv; do
printf "%s\n" "$i"
done | zip -@ XYZ_2014.zip >> $XYZ_2014.log 2>&1 ||... (2 Replies)