MuteCall

Updated at:

Mutes a specified call in an instance. Only an agent who is currently on a call can call this operation, and the agent can only mute themselves. After the agent is muted, the customer cannot hear the agent.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

The instance ID.

ccc-test

UserId

string

No

The ID of the agent to be muted.

agent@ccc-test

DeviceId

string

No

The device ID. This parameter is ignored and can be set to any value.

device

JobId

string

Yes

The call ID.

job-6581536084722****

ChannelId

string

No

The ID of the voice channel to be muted. This parameter is optional and empty by default. If it is left empty, the voice channel of the agent specified by UserId is muted.

ch:user:1318888****->8001****:1609253204816:job-6581536084722****

Response elements

Element

Type

Description

Example

object

Code

string

The response code.

OK

HttpStatusCode

integer

The HTTP status code.

200

Message

string

The response message.

None

RequestId

string

The request ID.

A275B008-A25B-494D-AB53-93CE253815B6

Params

array

The list of response parameters.

string

The response parameter.

None

Data

object

The data.

CallContext

object

The call context.

CallType

string

The call type.

Valid values:

  • INBOUND :

    Inbound call.

  • BARGE :

    Barge-in.

  • CONSULTANT :

    Consultation.

  • CONFERENCE :

    Conference.

  • MONITOR :

    Monitor.

  • INTERNAL :

    Internal call.

  • OUTBOUND :

    Outbound call.

  • INTERCEPT :

    Intercept.

  • BACK2BACK :

    Back-to-back call.

  • PREDICTIVE :

    Predictive outbound call.

  • COACH :

    Coach.

OUTBOUND

InstanceId

string

The instance ID.

ccc-test

JobId

string

The call ID.

job-6581536084722****

ChannelContexts

array<object>

The list of call channels.

object

The call channel.

Index

integer

The system auto-incremented ID. You can ignore this parameter.

1

ReleaseInitiator

string

The party that disconnected the call channel, indicating who initiated the disconnection.

None

ChannelState

string

The state of the call channel.

Valid values:

  • CREATED :

    Created.

  • ANSWERED :

    Answered.

  • RELEASED :

    Released.

  • RETIRED :

    Retired.

  • EARLY_MEDIA :

    Early media.

  • NONE :

    Initial state.

  • RINGING :

    Ringing.

ANSWERED

Destination

string

The called party of the call channel.

8001****

UserId

string

The ID of the agent associated with the call channel. This field is empty if the call channel belongs to a customer.

agent@ccc-test

ChannelFlags

string

The call channel flags.

Valid values:

  • COACHING :

    Coaching.

  • MONITORING :

    Monitoring.

  • MONITORED :

    Monitored.

  • COACHED :

    Coached.

  • HOLD :

    On hold.

  • MUTED :

    Muted.

[MUTED]

Timestamp

integer

The timestamp of the last state change of the call channel. The value is a UNIX timestamp in milliseconds.

1609253212511

ReleaseReason

string

The disconnection reason of the call channel, indicating why the call channel was disconnected. The value is a response code defined in the Session Initiation Protocol (SIP). Refer to the SIP specification to analyze the disconnection reason.

None

CallType

string

The call type of the call channel.

Valid values:

  • INBOUND :

    Inbound call.

  • BARGE :

    Barge-in.

  • CONSULTANT :

    Consultation.

  • CONFERENCE :

    Conference.

  • MONITOR :

    Monitor.

  • INTERNAL :

    Internal call.

  • OUTBOUND :

    Outbound call.

  • INTERCEPT :

    Intercept.

  • BACK2BACK :

    Back-to-back call.

  • PREDICTIVE :

    Predictive outbound call.

  • COACH :

    Coach.

OUTBOUND

JobId

string

The call ID.

job-6581536084722****

ChannelId

string

The ID of the call channel.

ch:user:1318888****->8001****:1609253204816:job-6581536084722****

UserExtension

string

The extension number of the agent associated with the call channel.

8001****

Originator

string

The calling party of the call channel.

1318888****

SkillGroupId

string

The ID of the skill group associated with the call channel. In an inbound scenario, the associated skill group ID is determined by the skill group configured in the transfer-to-agent module of the interactive voice response (IVR). In an outbound scenario, the associated skill group ID is the ID of the first skill group that the agent signs in to.

skillgroup@ccc-test

UserContext

object

The agent context.

Extension

string

The extension number of the agent.

8001****

Heartbeat

integer

The time when the last heartbeat was received from the agent. The value is a UNIX timestamp in milliseconds.

1609253205896

WorkMode

string

The work mode.

Valid values:

  • ON_SITE :

    On-site.

  • OFF_SITE :

    Off-site.

  • OFFICE_PHONE :

    Office phone.

ON_SITE

DeviceId

string

The device ID. This is the identifier of the browser WebRTC softphone or the physical phone device. Only one device can be registered at a time.

ACC-YUNBS-1.0.10-****

UserId

string

The ID of the agent.

agent@ccc-test

Reserved

integer

The time when the agent was last reserved. A reserved status indicates that an incoming call will be assigned to the agent soon. The value is a UNIX timestamp in milliseconds.

1609253204811

BreakCode

string

The break code. Break codes are divided into system-defined and custom codes. System-defined break codes include: Warm-up (the temporary break state after the agent goes online and before becoming idle), RingingTimeout (the break caused by agent ringing timeout), and RejectCall (the break caused by the agent rejecting a call). There are no limits on custom break codes. You can define them based on your business needs.

Valid values:

  • RingingTimeout :

    The break caused by agent ringing timeout.

  • RejectCall :

    The break caused by the agent rejecting a call.

  • Warm-up :

    The temporary break state after the agent goes online and before becoming idle.

Warm-up

InstanceId

string

The instance ID.

ccc-test

OutboundScenario

boolean

Specifies whether the agent is in outbound-only mode.

false

Mobile

string

The personal phone number of the agent.

1390000****

JobId

string

The call ID.

job-6581536084722****

UserState

string

The state of the agent.

Valid values:

  • READY :

    ready.

  • WORKING :

    after-call work.

  • DIALING :

    dialing.

  • BREAK :

    break.

  • OFFLINE :

    offline.

  • TALKING :

    talking.

  • RINGING :

    Ringing.

TALKING

SignedSkillGroupIdList

array

The list of skill group IDs that the agent is signed in to.

string

The skill group ID.

skillgroup1@ccc-test

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "A275B008-A25B-494D-AB53-93CE253815B6",
  "Params": [
    "无"
  ],
  "Data": {
    "CallContext": {
      "CallType": "OUTBOUND",
      "InstanceId": "ccc-test",
      "JobId": "job-6581536084722****",
      "ChannelContexts": [
        {
          "Index": 1,
          "ReleaseInitiator": "无",
          "ChannelState": "ANSWERED",
          "Destination": "8001****",
          "UserId": "agent@ccc-test",
          "ChannelFlags": "[MUTED]",
          "Timestamp": 1609253212511,
          "ReleaseReason": "无",
          "CallType": "OUTBOUND",
          "JobId": "job-6581536084722****",
          "ChannelId": "ch:user:1318888****->8001****:1609253204816:job-6581536084722****",
          "UserExtension": "8001****",
          "Originator": "1318888****",
          "SkillGroupId": "skillgroup@ccc-test"
        }
      ]
    },
    "UserContext": {
      "Extension": "8001****",
      "Heartbeat": 1609253205896,
      "WorkMode": "ON_SITE",
      "DeviceId": "ACC-YUNBS-1.0.10-****",
      "UserId": "agent@ccc-test",
      "Reserved": 1609253204811,
      "BreakCode": "Warm-up",
      "InstanceId": "ccc-test",
      "OutboundScenario": false,
      "Mobile": "1390000****",
      "JobId": "job-6581536084722****",
      "UserState": "TALKING",
      "SignedSkillGroupIdList": [
        "skillgroup1@ccc-test"
      ]
    }
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 Parameter.Blank The parameter %s may not be null or blank. The parameter cannot be null or a string that contains whitespace characters.
400 InvalidOperation.ChannelState The operation is not allowed. Channel stats (%s) does not meet expectations (%s).
400 InvalidOperation.UserState The operation is not allowed. User state (%s) does not meet expectations (%s). Invalid operation. The user status is not as expected.
500 InternalService.CTI An internal CTI service error occurred. %s An internal CTI service error occurred.
404 NotExists.ChannelId The specified channel %s does not exist in call %s. The specified channel information does not exist in the call.
404 NotExists.InstanceId The specified instance %s does not exist. The specified call center instance does not exist.
404 NotExists.JobId The call %s does not exist. The specified call information does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.