Genesys CTI User Forum > Genesys-related Development
Softphone connected to WDE 8.5.1 doesn't trigger any voice chain of commands
cavagnaro:
You are monitoring MakeCall but that event isn't happening in a Manual call, therefore you need to monitor the correct event so WDE can listen to it and then you act via your code
hsujdik:
Take a look on Genesyslab.Desktop.Modules.Core.Model.Interactions.InteractionManager
Specifically, the event handler InteractionEvent -> InteractionEventArgs -> ESDKInteraction -> IHeader -> CurrentContext -> msg
Also, take a look on Events and Models Reference Manual:
https://docs.genesys.com/Special:Repository/8g_ref_events-models.pdf?id=5fe793c7-6128-420d-8392-a75d473fd736
gogupandele:
Hi,
I think I'm on a very good path here.
What I did is like this:
a) in the initialization method I hooked up to the InteractionEvent:
[code]IInteractionManager interactionManager = container.Resolve<IInteractionManager>();
interactionManager.InteractionEvent += InteractionManagerOnInteractionEvent;[/code]
b) in the event handler I'm able to catch the EventDialing which is triggered regardless of the place from where the dialing takes place (softphone or WDE):
[code]
IInteraction interaction = eventArgs.Value;
if (interaction != null && interaction is IInteractionVoice)
{
IInteractionVoice interactionVoice = interaction as IInteractionVoice;
switch (interactionVoice.EntrepriseLastInteractionEvent.Id)
{
case EventDialing.MessageId:
MessageBox.Show(interactionVoice.PhoneNumber);
break;
}
}
[/code]
Everything is great now but how can I get to the received call event? (I think I have to read a bit more but if anyone have any hints, please help).
Thousand thanks.
hsujdik:
[quote author=gogupandele link=topic=10671.msg48448#msg48448 date=1507579097]
Hi,
I think I'm on a very good path here.
What I did is like this:
a) in the initialization method I hooked up to the InteractionEvent:
[code]IInteractionManager interactionManager = container.Resolve<IInteractionManager>();
interactionManager.InteractionEvent += InteractionManagerOnInteractionEvent;[/code]
b) in the event handler I'm able to catch the EventDialing which is triggered regardless of the place from where the dialing takes place (softphone or WDE):
[code]
IInteraction interaction = eventArgs.Value;
if (interaction != null && interaction is IInteractionVoice)
{
IInteractionVoice interactionVoice = interaction as IInteractionVoice;
switch (interactionVoice.EntrepriseLastInteractionEvent.Id)
{
case EventDialing.MessageId:
MessageBox.Show(interactionVoice.PhoneNumber);
break;
}
}
[/code]
Everything is great now but how can I get to the received call event? (I think I have to read a bit more but if anyone have any hints, please help).
Thousand thanks.
[/quote]
EventRinging instead of EventDialing for a receiving call (or even EventEstablished for when the call is actually connected - for both incoming and outgoing calls)
gogupandele:
Thank you very much. I will try this tomorrow morning because right now the line was closed.
Thank you also for the idea with the other event but I will stick with the EventDialing and EventRinging because I have to open a window with some information before the connection has been established.
Thank you again.
Navigation
[0] Message Index
[*] Previous page
Go to full version