PAMI outbound call issue using DHADI

I am using PAMI and when the dialed extension picks up the call it dials other local extension numbers automatically and does not dial to the customer number :frowning:
Code am using is:

$actionid = md5(uniqid());
$originateMsg = new OriginateAction(“SIP/726@voipgw”);
$originateMsg->setContext(‘dialer’);
$originateMsg->setPriority(‘1’);
$originateMsg->setExtension(“08008085883”);//$destCallerId
$originateMsg->setCallerId(“08008085883”);
$originateMsg->setTimeout(20000);
$originateMsg->setAsync(true);
$originateMsg->setActionID($actionid);
$a->send($originateMsg);

Solution that worked for me:

$originateMsg = new OriginateAction(‘SIP/ExtensionNumberHere’);
$originateMsg->setExtension(“CustomerNumberHere”);
$originateMsg->setCallerId(“DAHDI/g0/CustomerNumberHere”);