I'm trying to use the event socket to determine whether and extension is engaged.
Has anyone already skinned this cat?
I don't really want to query I want to take an event and stick it somewhere. At the moment the best bet seems to take any PRESENCE_IN event and then update using that.
If we were dealing with purely non-call waiting situation then I could just set the extension to available status when we have received a state 'terminated' from the event. With call waiting this is no good as we need to know whether there are multiple calls. I think there may always be a 'ringing' state so I could use that to increment an extensions call count but its possible we may receive multiple ringing events for a single call without a terminated in between.
Any help is welcome
Has anyone already skinned this cat?
I don't really want to query I want to take an event and stick it somewhere. At the moment the best bet seems to take any PRESENCE_IN event and then update using that.
If we were dealing with purely non-call waiting situation then I could just set the extension to available status when we have received a state 'terminated' from the event. With call waiting this is no good as we need to know whether there are multiple calls. I think there may always be a 'ringing' state so I could use that to increment an extensions call count but its possible we may receive multiple ringing events for a single call without a terminated in between.
Any help is welcome