Commit f338e9c4 authored by Kulya's avatar Kulya 😊

Handler PhoneNumber from CallerID2

parent 9c8edb93
...@@ -344,7 +344,7 @@ class AloVoiceHandle implements \PAMI\Listener\IEventListener ...@@ -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'){ if($bxchannels[$eventKeys["linkedid"]]["BX24_DIRECTION"]=='OUTCALL'){
$callRegisterParams["USER_PHONE_INNER"] = $bxchannels[$eventKeys["linkedid"]]["BX24_CALLERID"]; $callRegisterParams["USER_PHONE_INNER"] = $bxchannels[$eventKeys["linkedid"]]["BX24_CALLERID"];
...@@ -365,7 +365,7 @@ class AloVoiceHandle implements \PAMI\Listener\IEventListener ...@@ -365,7 +365,7 @@ class AloVoiceHandle implements \PAMI\Listener\IEventListener
$callRegisterParams["DESC"] = $eventKeys["calleridname"]; $callRegisterParams["DESC"] = $eventKeys["calleridname"];
} }
else { else {
$callRegisterParams["PHONE_NUMBER"] = substr($eventKeys["calleridnum"],-9);
} }
$searchNumber = $callRegisterParams["PHONE_NUMBER"]; $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