i did this to sort this problem
inuse=1-------- elseif ($dialstatus == "CANCEL") { $answeredtime=0;}
vi /usr/local/src/a2billing/common/lib/Class.A2Billing.php
-------so it looks like this---------------------------------------------------
$this -> debug( INFO, $agi, __FILE__, __LINE__, "[".$inst_listdestination[4]." Friend][followme=$callcount]:[ANSWEREDTIME=".$answeredtime."-DIALSTATUS=".$dialstatus."]");
//# Ooh, something actually happend! if ($dialstatus == "BUSY") {
$answeredtime=0; $agi-> stream_file('prepaid-isbusy', '#'); if (count($listdestination)>$callcount) continue;
} elseif ($this->dialstatus == "NOANSWER") {
$answeredtime=0; $agi-> stream_file('prepaid-callfollowme', '#'); if (count($listdestination)>$callcount) continue;
} elseif ($dialstatus == "CANCEL") {
// Call cancelled, no need to follow-me //return 1; $answeredtime=0;
} elseif ($dialstatus == "ANSWER") { $this -> debug( DEBUG, $agi, __FILE__, __LINE__, "[A2Billing] DID call friend: dialstatus : $dialstatus, answered time is ".$answeredtime." \n");
|