Legacy Dev Forum Posts

 View Only

Sign Up

Determine speakTo from notification message

  • 1.  Determine speakTo from notification message

    Posted 06-05-2025 18:10

    skansakar | 2016-10-10 15:35:56 UTC | #1

    Is there a way to determine who the agent is currently speaking to from the notification message?

    I establish a consult call and change the person who I want to speak to- initially to DESTINATION, then to OBJECT or BOTH.

    I would like to distinguish between a consult transfer (speakTo: DESTINATION or OBJECT) or a conference (speakTo: BOTH)

    Is this possible?


    tim.smith | 2016-10-05 16:22:51 UTC | #2

    Take a look at the confined property on the call for each participant. If confined==true, the agent/user is not speaking to that person. Held will still be false because confinement in a consult is technically different than being on hold.


    skansakar | 2016-10-05 16:27:55 UTC | #3

    I am using confined to alternate between the two participants :smiley:

    How about this for a logic to solve my problem-

    If confined==false for all CONNECTED participants, then it is a conference call?

    Will this hold true? :smirk:


    tim.smith | 2016-10-05 16:39:09 UTC | #4

    skansakar, post:3, topic:467
    If confined==false for all CONNECTED participants, then it is a conference call?

    Yes, they will all three be speaking to each other. Also note that when switching between the caller and the consult party, you will receive two notifications. The first will unconfine the confined participant. At this point, all three parties will be unconfined. However, you'll immediately receive another notification confining the other participant. Just pointing out that it will look like a conference for a couple milliseconds before the other party is confined, so make sure your application can handle this quick change.


    skansakar | 2016-10-05 17:28:30 UTC | #5

    So I get a message unconfining all three participants. All good up till here.

    But bit confused about the second message. Who will it confine if there are only 3 connected participants and others are disconnected ?


    tim.smith | 2016-10-05 17:38:31 UTC | #6

    The confinement is a reaction to the user's actions. So if a user is speaking to the caller and the consult participant is confined (on hold):

    • If the user unholds the consult participant, all participants become unconfined and you have a 3 way call/conference (just one message)
    • If the user holds the caller, first the consult participant becomes unconfined (first message) and then the caller confined (second message)

    skansakar | 2016-10-05 21:36:45 UTC | #7

    Got it. Will give it a try. Thanks!


    system | 2017-08-28 19:27:44 UTC | #8


    This post was migrated from the old Developer Forum.

    ref: 467