Basically I have been implementing a standard TRANSFER via PHP AGI (PAGI) to one of our internal PBX systems from Asterisks.
The caller calls into our Asterisk application, we then do some searching and we change the caller id which works perfectly fine. However if we then transfer the call to our PBX it does not retain the caller id, it instead uses the original caller ID.
To ensure we do not strain asterisk, we wish to transfer the call (ie refer) rather an issue a DIAL to our other PBX so that the Asterisk becomes removed from the interaction with the caller and the internal PBX.
I have tried the following:
$this->agi->exec('SET', array("CONNECTEDLINE(number,i)=".$this->customer->OutboundID));
$this->agi->exec('SET', array("CONNECTEDLINE(name,i)=".$this->customer->OutboundID));
$this->agi->exec('SET', array("CONNECTEDLINE(pres,i)=".$this->customer->OutboundID));
$this->agi->exec('SET', array("ORIG_CID=".$this->customer->OutboundID));
$this->agi->exec('SET', array("CALLERID(num)=".$this->customer->OutboundID));
Kind Regards
Warren