Subversion Repositories general

Compare Revisions

Ignore whitespace Rev 1389 → Rev 1390

/asterisk-activecalls/trunk/activecalls.pl
588,7 → 588,13
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 {
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);
}
}