Condition Coverage

blib/lib/Net/SIP/Simple/Call.pm
Criterion Covered Total %
condition 58 121 47.9


and 3 conditions

line !l l&&!r l&&r condition
247 30 0 0 $param->{'sdp_on_ack'} and $ack
333 0 6 0 $code and $code =~ /^1\d\d/
373 0 27 0 $code and $code =~ /^1\d\d/
409 0 0 0 $code and $code =~ /^1\d\d/
448 12 0 12 not %payload_type and my $m = shift @methods
453 0 0 6 $self->{'param'}{'sdp_peer'} && $self->{'param'}{'sdp_peer'}->name2int('telephone-event/8000', 'audio')
548 18 0 0 $resp and UNIVERSAL::isa($resp, 'Net::SIP::Packet')
604 15 0 33 $ls and @$ls
15 33 0 $ls and @$ls and @media != @$ls
623 0 38 9 $m->{'media'} eq 'audio' and $param->{'cb_dtmf'}
663 52 4 0 $sdp and not UNIVERSAL::isa($sdp, 'Net::SIP::SDP')
705 37 0 0 $rp->[3] && $rp->[0] == 101
736 0 56 0 not $param->{'media_ssocks'} and $param->{'asymetric_rtp'}

or 2 conditions

line l !l condition
93 18 35 $param ||= {}
95 0 53 $param->{'rtp_param'} ||= [0, 160, 0.02]
96 0 53 $param->{'dtmf_events'} ||= []
208 106 0 shift() || (return)
257 11 27 $param->{'cb_final'} ||= \$stopvar
272 0 0 shift() || (return)
327 6 0 shift() || (return)
366 27 0 shift() || (return)
407 0 0 shift() || (return)
444 12 0 $args{'duration'} || 100
445 12 0 $args{'methods'} || 'rfc2833,audio'
456 0 6 $self->{'param'}{'sdp_peer'} && $self->{'param'}{'sdp_peer'}->name2int('PCMU/8000', 'audio') || 0
613 48 0 $m->{'range'} || 1
625 0 9 $param->{'dtmf_methods'} || 'audio,rfc2833'
707 0 37 $rp->[0] || 0
747 0 0 INETSOCK(@arg) || die($!)
750 0 0 INETSOCK(@arg) || die($!)

or 3 conditions

line l !l&&r !l&&!r condition
85 18 35 0 $ctx->{'from'} ||= $self->{'from'}
86 0 0 53 $ctx->{'contact'} ||= $self->{'contact'}
87 0 1 52 $ctx->{'auth'} ||= $self->{'auth'}
88 0 0 53 $ctx->{'route'} ||= $self->{'route'}
94 6 47 0 $param->{'init_media'} ||= $self->rtp('media_recv_echo')
212 0 1 6 not $code or $code != 487
323 0 0 6 $cb ||= $args{'send_cancel'}
362 27 0 0 $cb ||= $args{'send_bye'}
517 15 3 36 $method eq 'BYE' or $method eq 'CANCEL'
18 18 0 $method eq 'ACK' or $method eq 'INVITE'
542 3 15 0 $param->{'leg'} ||= $leg
588 48 0 0 shift() || $param->{'sdp_peer'}
615 0 1 47 not $m->{'port'} or $paddr eq '0.0.0.0'
1 0 47 not $m->{'port'} or $paddr eq '0.0.0.0' or $paddr eq '::'
662 4 0 52 $param->{'_sdp_saved'} || $param->{'sdp'}
739 0 0 0 $param->{'rtp_addr'} || $laddr