search for: to_log

Displaying 2 results from an estimated 2 matches for "to_log".

Did you mean: do_log
2009 Aug 25
1
How to detect if the call is being answered by Voice Mail?
Hi, I am pretty new to Asterisk. I am trying to make sure some human being answers the phone not the voice mail machine. How can I programmatically identify that? Here is my Sub: sub DialPhysician { my ($self, $con, $PhysicianPhone, $call_id, $conv_id) = (@_); to_log($self, "Inside Dial Physician", 2); my $DocPhone = "1". $PhysicianPhone; to_log($self, "Values: $DocPhone, $call_id, $conv_id", 2); $self->agi->set_variable("STATE","NEXT"); $self->agi->set_varia...
2009 Aug 17
0
Call back DIALSTATUS is empty
...hift; my $call_id = $self->param('callid'); my $ph_num= $self->param('num1'); my $p_num= $self->param('num2'); my $con= $self->{server}{dbi}; my $state=$self->agi->get_variable("stat_vars"); to_log($self, "Inside Callback Handler.", 1); unless($state) { #$self->log(1, "Callback Handler State: $state"); $self->log(1,"Callback: $call_id $ph_num $p_num"); #$self->agi->exec("Answer&quo...