cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1004
Views
0
Helpful
5
Replies

Finsse api - Single step transfer

michales
Level 1
Level 1

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

5 Replies 5

dekwan
Cisco Employee
Cisco Employee

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

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

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

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

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