Hello!
First of all, I would like to say thank you for all of your response.
I analyzed the incoming call events and this is what I got so far and made the Call popup feature work.
//Newchannel and State is ringing
if($event->getName() == “Newchannel” && ChannelState == 4){
//Connected to Trunkline
}
//Caller has been registered
if($event->getName() == “NewCallerid” && ChannelState == 4){
//Send data to CRM to show popup call window
}
//User pickup the call
if($event->getName() == “UserEvent” && ChannelState == 6){
//Send data to CRM to hide popup call window but not the user who answered the call
}
Cheers,
Sigmund