Commit f338e9c4 authored by Kulya's avatar Kulya 😊

Handler PhoneNumber from CallerID2

parent 9c8edb93
......@@ -344,7 +344,7 @@ class AloVoiceHandle implements \PAMI\Listener\IEventListener
}
}
$connLineNum = substr($eventKeys["connectedlinenum"],-9);
$connLineNum = (!empty($eventKeys["connectedlinenum"])) ? substr($eventKeys["connectedlinenum"],-9) : false;
if($bxchannels[$eventKeys["linkedid"]]["BX24_DIRECTION"]=='OUTCALL'){
$callRegisterParams["USER_PHONE_INNER"] = $bxchannels[$eventKeys["linkedid"]]["BX24_CALLERID"];
......@@ -365,7 +365,7 @@ class AloVoiceHandle implements \PAMI\Listener\IEventListener
$callRegisterParams["DESC"] = $eventKeys["calleridname"];
}
else {
$callRegisterParams["PHONE_NUMBER"] = substr($eventKeys["calleridnum"],-9);
}
$searchNumber = $callRegisterParams["PHONE_NUMBER"];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment