Subversion Repositories general

Compare Revisions

Regard whitespace Rev 1375 → Rev 1390

/asterisk-activecalls/trunk/activecalls.pl
588,8 → 588,14
newchannel => sub {
my $input = $_[ARG0];
if(my $channel = add_channel($input)) {
create_record($channel) if($input->{State} eq 'Ring');
# the channel is new one if (it ringsi - usual case)
# or (it is ringed but source not known yet - call is being originated)
if($input->{State} eq 'Ring'
|| $input->{State} eq 'Ringing' && !$channel->{SrcChannel})
{
create_record($channel);
}
}
},
newcallerid => sub {
my $input = $_[ARG0];
614,7 → 620,11
if($channel->{Id}) {
update_record($channel);
}
elsif($input->{State} eq 'Ring') {
# the channel is new one if (it ringsi - usual case)
# or (it is ringed but source not known yet - call is being originated)
elsif($input->{State} eq 'Ring'
|| $input->{State} eq 'Ringing' && !$channel->{SrcChannel})
{
create_record($channel);
}
}