| line |
true |
false |
branch |
|
101
|
270 |
0 |
unless defined $options->{$k} |
|
118
|
53 |
1 |
if $legs and ref $legs ne 'ARRAY' |
|
126
|
0 |
0 |
$ip ? : |
|
|
0 |
0 |
if not defined $ip or ref $ip |
|
131
|
54 |
0 |
$legs ? : |
|
132
|
52 |
2 |
if (UNIVERSAL::isa($_, 'Net::SIP::Leg')) { } |
|
|
2 |
0 |
elsif (UNIVERSAL::isa($_, 'IO::Handle')) { } |
|
|
0 |
0 |
elsif (UNIVERSAL::isa($_, 'HASH')) { } |
|
|
0 |
0 |
elsif (my($proto, $host, $port, $family) = sip_uri2sockinfo($_)) { } |
|
144
|
0 |
0 |
$family ? : |
|
159
|
108 |
0 |
unless $dst |
|
160
|
0 |
0 |
if &first(sub {
$_->can_deliver_to($dst);
}
, @$legs) |
|
162
|
0 |
0 |
$family ? : |
|
175
|
54 |
0 |
if @$legs |
|
176
|
0 |
54 |
if $proxy |
|
183
|
54 |
0 |
if @$legs |
|
193
|
38 |
16 |
if ($from) |
|
194
|
4 |
34 |
if (not defined $domain and $from =~ /\bsips?:[^\@]+\@([\w\-\.]+)/) |
|
197
|
0 |
38 |
unless ($from =~ /\s/ or $from =~ /\@/) |
|
198
|
0 |
0 |
$disp->get_legs('proto', 'tls') ? : |
|
203
|
0 |
54 |
if %args |
|
242
|
1 |
20 |
if (@_) |
|
245
|
0 |
1 |
if $Net::SIP::Simple::DEBUG |
|
262
|
123 |
95 |
if (ref $_) { } |
|
|
95 |
0 |
elsif (defined $_) { } |
|
323
|
0 |
0 |
unless ($leg) |
|
338
|
0 |
0 |
unless ($contact) |
|
341
|
0 |
0 |
unless $contact =~ s/\@([^\s;,>]+)/\@$local/ |
|
350
|
0 |
0 |
if %args |
|
358
|
0 |
0 |
if ($code and $code =~ /^2\d\d/) { } |
|
|
0 |
0 |
elsif ($code) { } |
|
|
0 |
0 |
elsif ($errno) { } |
|
365
|
0 |
0 |
unless defined(my $e = $p->{'expires'}) |
|
366
|
0 |
0 |
unless sip_uri_eq($addr, $contact) |
|
367
|
0 |
0 |
if not defined $exp or $e < $exp |
|
369
|
0 |
0 |
unless defined $exp |
|
389
|
0 |
0 |
if (\$stopvar == $cb_final) |
|
391
|
0 |
0 |
$stopvar eq 'OK' ? : |
|
407
|
0 |
35 |
ref $ctx ? : |
|
408
|
0 |
35 |
unless $to |
|
409
|
0 |
35 |
unless ($to =~ /\s/ or $to =~ /\@/) |
|
410
|
0 |
0 |
unless $self->{'domain'} |
|
411
|
0 |
0 |
$self->{'dispatcher'}->get_legs('proto', 'tls') ? : |
|
414
|
0 |
0 |
if $ctx |
|
448
|
0 |
18 |
if ($method eq 'OPTIONS') { } |
|
|
0 |
18 |
elsif ($method ne 'INVITE') { } |
|
459
|
0 |
18 |
if (my $filter = $args->{'filter'}) |
|
461
|
0 |
0 |
unless ($rv) |
|
473
|
12 |
6 |
if ($cb_create) |
|
475
|
0 |
12 |
if (not $cbx) { } |
|
|
3 |
9 |
elsif (ref $cbx) { } |
|
492
|
1 |
17 |
if (my $auth = _make_auth_from_args($self, \%args)) |
|
512
|
2 |
37 |
/^auth_(.+)/ ? : |
|
554
|
0 |
0 |
if ($auth) { } |
|
583
|
0 |
1 |
if ($auth) { } |