# Whisper not working when customer is on mute

**URL:** <https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136>\
**Category:** Asterisk APIs\
**Created:** [April 30, 2025, 10:37am UTC](https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136 "2025-04-30T10:37:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kashishraheja](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/kashishraheja/32/9066_2.png) [@kashishraheja](https://community.asterisk.org/u/kashishraheja)\
**Post date:** [April 30, 2025, 10:37am UTC](https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136/1 "2025-04-30T10:37:06Z")

</div>

We are trying to do a listen and then whisper by supervisor on a call going on between agent and the customer. In case of whisper, ideally, supervisor should be able to talk to the agent which is happening as expected in normal scenarios, however, the same is not happening in the following scenario:

- Call is initiated is agent

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels" \
  --header 'Content-Type: application/json' \
  -d '{
    "endpoint": "<agent_channel>",
    "timeout": 30,
    "callerId": "<caller_id>",
    "app": "pbx",
    "appArgs": "default_args",
    "channelId": "chanA_xxxxxxxx"
}'

```

- Call is initiated to customer

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels" \
  --header 'Content-Type: application/json' \
  -d '{
    "endpoint": "<customer_channel>",
    "timeout": 30,
    "callerId": "<caller_id>",
    "app": "pbx",
    "appArgs": "default_args",
    "channelId": "chanB_xxxxxxxx"
}'

```

- Create Bridge

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/bridges?type=mixing"

```

- Add agent and customer into same channel

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/bridges/BRIDGE_1_ID/addChannel?channel=CHAN_A_ID,CHAN_B_ID"

```

- Customer and agent are able to talk to each other

- Call is initiated to Supervisor

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels" \
  --header 'Content-Type: application/json' \
  -d '{
    "endpoint": "<supervisor_channel>",
    "timeout": 30,
    "callerId": "<caller_id>",
    "app": "pbx",
    "appArgs": "default_args",
    "channelId": "chanC_xxxxxxxx"
}'

```

- Mute Supervisor Channel

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels/CHAN_C_ID/mute?direction=in"

```

- A snoop channel is created on Agent leg (spy=both and whisper=out)

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels/CHAN_A_ID/snoop?app=exopbx&spy=both&whisper=out"

```

- A bridge is created

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/bridges?type=mixing"

```

- Snoop channel and supervisor channel is added to the bridge

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/bridges/BRIDGE_2_ID/addChannel?channel=CHAN_C_ID,SNOOP_ID"

```

- Now supervisor is able to hear both agent and customer

- Unmute supervisor channel

```auto
curl -X DELETE -u "username:password" "http://0.0.0.0:8088/ari/channels/CHAN_C_ID/mute?direction=in"

```

- Now supervisor is able to talk to agent and agent is able to hear the supervisor

- Agent mutes customer (direction = in)

```auto
curl -X POST -u "username:password" "http://0.0.0.0:8088/ari/channels/CHAN_B_ID/mute?direction=in"

```

- Now the agent is not able to hear supervisor which is not expected. Muting the customer should not have any effect on agent not able to hear supervisor.

Are we doing something wrong? Is there any change that we can do to make it work?

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [April 30, 2025, 10:39am UTC](https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136/2 "2025-04-30T10:39:50Z")

</div>

I can say that in order for whispering to work audio has to be going to the channel. Mute on the customer channel may result in no audio flowing to the agent, and thus no audio to whisper into.

---

<div class="post-metadata">

**Author:** ![kashishraheja](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/kashishraheja/32/9066_2.png) [@kashishraheja](https://community.asterisk.org/u/kashishraheja)\
**Post date:** [May 2, 2025, 5:11am UTC](https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136/3 "2025-05-02T05:11:57Z")

</div>

Any way with which we can make it work?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [June 1, 2025, 5:12am UTC](https://community.asterisk.org/t/whisper-not-working-when-customer-is-on-mute/108136/4 "2025-06-01T05:12:44Z")

</div>

Closed on June 1, 2025, 5:12am UTC

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