in reply to Net::SIP Total Newbie question
I think the whole operation of Net::SIP::Simple is asynchronous, so you need to run its event loop in any case (see also its SYNOPSIS):
... # Mainloop $ua->loop;
To react on the call, you want to pass callbacks into ->invite():
my $call = $ua->invite( $to, cb_final => sub { print "Call finished?\n" }, cb_noanswer => sub { print "Nobody home\n" }, );
See Net::SIP::Simple::Call for more on the callbacks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SIP Total Newbie question
by kobaz (Novice) on Mar 10, 2024 at 18:15 UTC |