Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1390 → Rev 1375

//asterisk-activecalls/trunk/activecalls.pl
588,13 → 588,7
newchannel => sub {
my $input = $_[ARG0];
if(my $channel = add_channel($input)) {
# 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);
}
create_record($channel) if($input->{State} eq 'Ring');
}
},
newcallerid => sub {
620,11 → 614,7
if($channel->{Id}) {
update_record($channel);
}
# 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})
{
elsif($input->{State} eq 'Ring') {
create_record($channel);
}
}