Applying for an Agent Conference
Prerequisites
- An agent has signed in.
Description
This interface is used by an agent to apply for an agent conference. If the interface is successfully invoked, the agent needs to wait for the subsequent asynchronous event. After the application is successful, the agent who applies for the conference becomes the chairperson. The agent who applies for a conference receives the AgentConf_SelfJoinResult event, indicating that the agent has joined the conference. The agent can perform chairperson operations only after the AgentConf_RequestSuccess event is received. Before receiving the AgentConf_RequestSuccess event, the platform directly returns a failure message when the agent invokes conference-related interfaces.

- The current agent is in idle or talking state. If the agent is in a call, the call must be in stable state. Otherwise, the agent fails to apply for a conference. For example, if the agent performs operations such as voice playback, muting, call holding, hang-up, or transferring the call to an agent during a call, the conference application fails.
- If there are two agents in a three-party conversation, the called agent cannot initiate an agent conference.
- The participant type can only be agent ID or phone number.
- The number of parties in a conference call must be less than or equal to the maximum number of concurrent voice calls set in the VDN.
Interface Method
The request method must be set to POST. This interface supports only the POST method.
URI
https://ip:port/agentgateway/resource/agentconf/{agentid}/requestagentconf
In the URL, ip indicates the IP address of the agent gateway server, and port indicates the HTTPS port number of the agent gateway server.
No. |
Parameter |
Data Type |
Mandatory |
Description |
---|---|---|---|---|
1 |
agentid |
String |
Yes |
Agent ID. The value ranges from 101 to 59999. |
Method Name in Logs
requestAgentConf
Request Description
- Message header
Table 2 Parameters in the request message header No.
Parameter
Value Type
Mandatory
Description
1
Content-Type
String
Yes
Coding mode of the message body. The default value is application/json; charset=UTF-8.
2
Guid
String
Yes
GUID returned by the sign-in interface during static authentication (AUTHMODE is set to 1) or GUID returned by the polling event query interface during dynamic authentication (AUTHMODE is set to 2).
- Message body
Table 3 Parameters in the message body No.
Parameter
Value Type
Mandatory
Description
1
memberNum
Integer
Yes
Maximum number of participants in a conference.
The value ranges from 1 to 120.
2
confCallerNo
String
No
Calling number displayed when a user is called to join a conference.
The maximum length is 24 bytes.
If this parameter is not set, the platform uses the system calling number in the basic information about the VDN configuration console by default. If there are restrictions on numbers in the VDN, the value must be within the restriction range.
3
time
Integer
No
Applied conference duration.
The unit is minute.
The value ranges from 4 to 1440.
The default value is 60.
4
promptTime
Integer
No
Duration after which a conference ends.
This parameter is optional.
The unit is minute.
The value ranges from 3 to 1440.
The default value is 3.
If the value is greater than or equal to the applied conference duration, the value is the applied conference duration minus 1.
5
beepTone
Boolean
No
Whether to play an announcement when a user joins or leaves a conference.
The default value is false.
6
playMode
Integer
No
2: Playing a specified voice file. The default value is 2.
7
voicePath
String
No
Absolute file path. The value is in the format of Drive letter/conf/VDN ID/Announcement file name, for example, y:/conf/120/1136287.V3.
When BeepTone is set to true, this parameter must be set and playMode must be set to 2. When BeepTone is set to false, this parameter is invalid.
The maximum length is 127.
Response Description
No. |
Parameter |
Value Type |
Description |
---|---|---|---|
1 |
message |
String |
Description.
NOTE:
If the error message Unknown ERROR._***** is displayed, ***** indicates a CTI error result code. For details, see Table 2. |
2 |
retcode |
String |
Error code. The options are as follows: 0: success Other values: failure |
3 |
result |
Object |
Reserved field. |
Triggered Event
- AgentState_Busy
- AgentOther_PhoneAlerting
- AgentOther_PhoneOffhook
- AgentConf_SelfJoinResult
- AgentConf_RequestSuccess
- AgentConf_RequestFailed
- AgentConf_Timeout
Error Code
- 000-002
- 100-006
- 100-007
Example
- Message header
Content-Type:application/json; charset=UTF-8 Guid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- Request parameters
{ "memberNum": 4, "confCallerNo": "10000", "time": 50, "promptTime": 5, "beepTone": true, "playMode": 2, "voicePath": "y:/conf/120/1136287.V3" }
- Response parameters
{ "result": {}, "message": "success", "retcode": "0" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot