Legacy Dev Forum Posts

 View Only

Sign Up

Notification received on both queue

  • 1.  Notification received on both queue

    Posted 06-05-2025 18:19

    yuezhong | 2021-04-01 04:58:16 UTC | #1

    Hi there

    i'm using the Java SDK subscribe for "v2.routing.queues." + queueId + ".conversations.calls";

    I subscribed for two queues. each topic have a dedicated NotificationListener, (two listeners).

    When an agent transfer the call from 1st queue to 2nd queue. I still received events of the conversation on the first Notification Listener.

    is this work as designed ? if it is, then if a call transfer multiple times cross 4 queues, that means all the previous queue Notification listener will continue receives events of the call.

    thanks yuezhong


    Jerome.Saint-Marc | 2021-04-07 12:05:16 UTC | #2

    Hello,

    Yes, this works as designed. The conversation notification topics on queues ("v2.routing.queues.{id}.conversations") work differently from the conversation notification on users ("v2.users.{id}.conversations").

    With queues topics, you will start receiving notifications on a conversation as soon as the queue is added as a participant of this conversation. And you will continue to receive notifications about this conversation until it is fully terminated/ended - even after the conversation has "left" the queue (ex: when the conversation is connected to an agent, and the customer chats with the agent).

    If you are only interested in the notifications related to a call which is still in queue, you will have to parse the notifications you receive and check if the queue participant session still appears as connected (and ignore the other notifications).

    Regards,


    yuezhong | 2021-04-07 20:58:31 UTC | #3

    thank you.

    regards Yuezhong


    system | 2021-05-08 21:04:46 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 10473