11-20-2016 04:44 AM
Hi,
We develope softphone base on finesse api.When i'm transfer call from one phone to other we get 4 messages from finesse:
Messgae 1:
calltype : CONSULT
dialogState: ALERTING
participant(caller) state:INITIATED
participant(agent) state:ALERTING
Messgae 2:
calltype : TRANSFER
dialogState: ACTIVE
participant(caller) ACTIVE
participant(agent) state: ALERTING
participant(other) state: DROPPED
Messgae 3:
calltype : TRANSFER
dialogState: DROPPED
participant(caller) state: DROPPED
participant(agent) state: DROPPED
Messgae 4:
calltype : TRANSFER
dialogState: ACTIVE
participant(caller) ACTIVE
participant(agent) state: ALERTING
Mssage 1 and message 4 with same id
My question is: for which message i need to answer (i.e excute ringing event on softphone)
best regards
Michael Sagi
11-20-2016 07:08 PM
Hi Michael,
You should be looking at the participant's allowable actions. If it contains ANSWER, then you should execute ringing event on the softphone. The same goes for DROP -> End call button.
Thanx,
Denise
11-22-2016 03:20 AM
Hi Thanx,
Thank you for your help.
I'm getting action = answer in post # 2 and post # 4(in agent participant) .
so I'm execute ringing event in both messages.
Is there a more precise distinction to avoid answering twice?
There is a way to know exactly which message to answer?
Messgae 2:
calltype : TRANSFER
dialogState: ACTIVE
participant(caller) ACTIVE
participant(agent) state: ALERTING
participant(other) state: DROPPED
action(agent): ANSWER
Messgae 4:
calltype : TRANSFER
dialogState: ACTIVE
participant(caller) ACTIVE
participant(agent) state: ALERTING
action(agent): ANSWER
Thanx,
Michael
11-22-2016 10:43 AM
Hi Michael,
You aren't actually answering an actual message, you are answering the dialog/call. You are getting multiple messages because this call is being updated with different information (participant state in this case). Once the call is answered, you should receive another message with different actions.
Thanx,
Denise
11-24-2016 02:50 AM
Hi Denise,
I'm new in developing on finesse i'm confused how should I react to events received from finesse
Is there a place where we can see a decision tree for the events received from finesse:
Thanx'
Michael
11-28-2016 10:50 AM
Hi Michael,
There isn't a decision tree. Basically, you need to process every Finesse event that you get because events are only sent when there is an update. What the Finesse desktop does is blindly display every event that it gets, even if there is another event that changes the values immediately after.
So in your case, you have to decide what to show when the participant state is ALERTING, ACTIVE, INITIATED, DROPPED, etc. You don't worry about what the other participants of the call are. Then, to know what buttons to display for your soft phone, you look at the allowable actions, if "ANSWER" is in the list, show the ANSWER button, if DROP is on the list, show END CALL button, etc.
I hope that helps.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide