SendDtmfSignaling

更新时间:
复制 MD 格式

You can invoke SendDtmfSignaling to send DTMF keypress information during a call.

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

Instance ID.

ccc-test

UserId

string

No

The agent ID that sends DTMF.

agent@ccc-test

DeviceId

string

No

Device ID. This parameter is meaningless and can be filled with any value.

device

JobId

string

Yes

The call ID.

job-6573574060089****

ChannelId

string

Yes

The channel ID of the call to which DTMF tones are to be sent.

ch:customer:0108989****->1318888****:1609234221870:job-6573574060089****

Dtmf

string

Yes

DTMF key information, which refers to the keys on a dial pad, including 0–9, *, and #.

5

Response elements

Element

Type

Description

Example

object

Code

string

Response code.

OK

HttpStatusCode

integer

HTTP status code.

200

Message

string

Response message.

RequestId

string

Request ID.

842399EC-7D32-4472-AD08-9504C3F141FF

Params

array

List of response parameters.

string

Response parameter.

Data

object

Data.

CallContext

object

Call context environment.

CallType

string

Call type.

Valid values:

  • INBOUND :

    Inbound

  • BARGE :

    Barge-in

  • CONSULTANT :

    Consultation

  • CONFERENCE :

    Conference

  • MONITOR :

    Listener

  • INTERNAL :

    Internal Call

  • OUTBOUND :

    Outbound

  • INTERCEPT :

    Intercept

  • BACK2BACK :

    Back-to-Back Call

  • PREDICTIVE :

    Predictive Outbound

  • COACH :

    Coaching

OUTBOUND

InstanceId

string

Instance ID.

ccc-test

JobId

string

Call ID.

job-6573574060089****

ChannelContexts

array<object>

List of call channels.

object

Call channel.

Index

integer

An auto-increment ID assigned by the system. Customers do not need to concern themselves with this value.

1

ReleaseInitiator

string

The party that initiated the release of the call channel, indicating who first hung up the call.

ChannelState

string

The status of the call channel.

Valid values:

  • CREATED :

    Created

  • ANSWERED :

    Answered

  • RELEASED :

    Released

  • RETIRED :

    Out Of Effect

  • EARLY_MEDIA :

    Early Media

  • NONE :

    Initial Status

  • RINGING :

    Ringing

ANSWERED

Destination

string

Callee of the call channel.

8001****

UserId

string

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

agent@ccc-test

ChannelFlags

string

Channel flags.

Valid values:

  • COACHING :

    Coaching

  • MONITORING :

    Monitoring

  • MONITORED :

    Monitored

  • COACHED :

    Coached

  • HOLD :

    Hold

  • MUTED :

    Muted

MONITORING

SkillGroupId

string

The skill group ID associated with the voice channel. In inbound scenarios, the associated skill group ID is determined by the skill group configured in the IVR transfer-to-agent module. In outbound scenarios, the associated skill group ID is the first skill group that the agent signed into.

skillgroup@ccc-test

Timestamp

integer

The UNIX timestamp of the most recent status change of the voice channel, in milliseconds.

1609234222367

ReleaseReason

string

The release reason for the voice channel, indicating why the current voice channel was disconnected. The value corresponds to response codes defined in the SIP protocol. Customers should refer to the SIP protocol to analyze the disconnection reason.

CallType

string

The call type of the channel.

Valid values:

  • INBOUND :

    Inbound

  • BARGE :

    Barge

  • CONSULTANT :

    Consultation

  • CONFERENCE :

    Conference

  • MONITOR :

    Listener

  • INTERNAL :

    Internal Call

  • OUTBOUND :

    Outbound

  • INTERCEPT :

    Intercept

  • BACK2BACK :

    Back-to-Back Call

  • PREDICTIVE :

    Predictive Outbound

  • COACH :

    Coaching

OUTBOUND

JobId

string

The call ID.

job-6573574060089****

ChannelId

string

The voice channel ID.

ch:user:131888****->8001****:1609234221870:job-6573574060089****

UserExtension

string

The extension number of the agent associated with the channel.

8001****

Originator

string

The originator of the channel.

0101234****

UserContext

object

Agent context environment.

Extension

string

The agent's extension number.

8001****

Heartbeat

integer

The time when the last heartbeat was received from the agent, in UNIX timestamp format, in milliseconds.

1609234222375

WorkMode

string

Work mode.

Valid values:

  • ON_SITE :

    On-site mode

  • OFF_SITE :

    Off-site mode

  • OFFICE_PHONE :

    Office phone mode

ON_SITE

DeviceId

string

Device ID, the identity ID of a browser-based Web Real-Time Communication (WebRTC) softphone or a physical phone device. Only one type of device can be registered at a time.

ACC-YUNBS-1.0.10-****

UserId

string

Agent ID.

agent@ccc-test

Reserved

integer

The most recent time when the agent was reserved. Being reserved means an incoming call will be assigned to the agent shortly. The value is in UNIX timestamp format, in milliseconds.

1609234221864

BreakCode

string

Break status code, which can be either System-defined or Custom-defined. System-defined break codes include: Warm-up (temporary break state after an agent is published and before becoming idle), RingingTimeout (break caused by agent ringing timeout), and RejectCall (break caused by agent rejecting a call). There are no restrictions on Custom-defined status codes; customers can define them according to their business needs.

Valid values:

  • RingingTimeout :

    Break caused by agent ringing timeout

  • RejectCall :

    Break caused by agent rejecting a call

  • Warm-up :

    Temporary break state after an agent is published and before becoming idle

Warm-up

InstanceId

string

instance ID.

ccc-test

OutboundScenario

boolean

Indicates whether the agent is in outbound-only mode.

false

Mobile

string

The agent's personal phone number.

1390000****

JobId

string

Call ID.

job-6573574060089****

UserState

string

Agent status.

Valid values:

  • READY :

    empty

  • WORKING :

    post-processing

  • DIALING :

    dial-up

  • BREAK :

    break

  • OFFLINE :

    offline

  • TALKING :

    talking

  • RINGING :

    ringing

TALKING

SignedSkillGroupIdList

array

List of skill group IDs that the agent has signed into.

string

Skill group ID.

skillgroup1@ccc-test

Examples

Success response

JSON format

{
  "Code": "OK",
  "HttpStatusCode": 200,
  "Message": "无",
  "RequestId": "842399EC-7D32-4472-AD08-9504C3F141FF",
  "Params": [
    "无"
  ],
  "Data": {
    "CallContext": {
      "CallType": "OUTBOUND",
      "InstanceId": "ccc-test",
      "JobId": "job-6573574060089****",
      "ChannelContexts": [
        {
          "Index": 1,
          "ReleaseInitiator": "无",
          "ChannelState": "ANSWERED",
          "Destination": "8001****",
          "UserId": "agent@ccc-test",
          "ChannelFlags": "MONITORING",
          "SkillGroupId": "skillgroup@ccc-test",
          "Timestamp": 1609234222367,
          "ReleaseReason": "无",
          "CallType": "OUTBOUND",
          "JobId": "job-6573574060089****",
          "ChannelId": "ch:user:131888****->8001****:1609234221870:job-6573574060089****",
          "UserExtension": "8001****",
          "Originator": "0101234****"
        }
      ]
    },
    "UserContext": {
      "Extension": "8001****",
      "Heartbeat": 1609234222375,
      "WorkMode": "ON_SITE",
      "DeviceId": "ACC-YUNBS-1.0.10-****",
      "UserId": "agent@ccc-test",
      "Reserved": 1609234221864,
      "BreakCode": "Warm-up",
      "InstanceId": "ccc-test",
      "OutboundScenario": false,
      "Mobile": "1390000****",
      "JobId": "job-6573574060089****",
      "UserState": "TALKING",
      "SignedSkillGroupIdList": [
        "skillgroup1@ccc-test"
      ]
    }
  }
}

Error codes

HTTP status code

Error code

Error message

Description

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).
500 InternalService.CTI An internal CTI service error occurred. %s
404 NotExists.ChannelId The specified channel %s does not exist in call %s.
404 NotExists.InstanceId The specified instance %s does not exist.
404 NotExists.JobId The call %s does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.