here is the fix to display both Last Name, First Name, and number
in file Class.A2billing.php
change this line
Code:
$agi->set_callerid($this->useralias);
to
Code:
$QUERY = "SELECT firstname, lastname FROM cc_card WHERE useralias='".$this->useralias."'";
$this -> debug( VERBOSE | WRITELOG, $agi, __FILE__, __LINE__, $QUERY);
$result = $this -> instance_table -> SQLExec ($this->DBHandle, $QUERY);
$this -> debug( VERBOSE | WRITELOG, $agi, __FILE__, __LINE__, $result);
$firstname=$result[0][0];
$lastname=$result[0][1];
$newcallerid = "\"$lastname". " $firstname <$this->useralias>\"";
$agi->set_callerid($newcallerid);
Thanks for all those that helped
za3toor