kobaz has asked for the wisdom of the Perl Monks concerning the following question:
my $sock_from = IO::Socket::INET->new( Proto => 'tcp', LocalPort => '5070', LocalAddr => '0.0.0.0', ); my $sock_to = IO::Socket::INET->new( Proto => 'tcp', PeerAddr => 'somesortofsomething', PeerPort => '5060', ); my $leg_from = Net::SIP::Leg->new( sock => $sock_from ); my $leg_to = Net::SIP::Leg->new( sock => $sock_to ); my $ua = Net::SIP::Simple->new( legs => [$leg_from, $leg_to], from => $from, outgoing_proxy => 'something', domain => 'something', ); my $timeout = 5; my $stopvar; $ua->add_timer($timeout , \$stopvar ); my $invite = $ua->invite($to); print Dumper($invite); -------------------
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SIP Total Newbie question
by Corion (Patriarch) on Mar 10, 2024 at 06:55 UTC | |
by kobaz (Novice) on Mar 10, 2024 at 18:15 UTC | |
Re: Net::SIP Total Newbie question
by jwkrahn (Abbot) on Mar 10, 2024 at 03:17 UTC | |
by kobaz (Novice) on Mar 10, 2024 at 17:05 UTC | |
by karlgoethebier (Abbot) on Mar 11, 2024 at 07:40 UTC |