API Commands Introduction For Yealink Video Conferencing System V1.06
API Commands Introduction For Yealink Video Conferencing System V1.06
July. 2016
V1.06
API Commands Introduction for Yealink VCS
Table of Contents
The features and syntax of central control API commands are covered in this guide. This
guide provides central control module introduction for readers to quickly understand the
related functions, and helps developers to complete follow-up programming work to
realize controlling Yealink video conferencing systems via LAN connection and Serial
connection.
callinfo on page 20
getcallid on page 29
sysstatus on page 36
The API commands described in this guide apply to Yealink video conferencing
systems running firmware version 2.0 or later.
The API commands can be sent to Yealink video conferencing systems over
network or serial port, to realize controlling the Yealink video conferencing systems.
In order to make it easier for readers to understand the API syntax, the detailed API
syntax is introduced in the following chapters. For more information, refer to About
the API Commands on page 5.
If Yealink video conferencing system connects to the LAN, you can send API commands
to it through TCP protocol. The control system needs to know the IP address and port of
the Yealink video conferencing system.
1
API Commands Introduction for Yealink VCS
You can use the API with a serial connection to control Yealink video conferencing
system. The USB port on the Yealink video conferencing system can be used as a serial
port, and establishes a connection with serial port on the control system through a serial
cable.
Baudrate: 115200
Databits: 8
Stopbits: 1
Parity: N (None)
2
Introduction for Central Control Environment
Returns video
conferencing system
status
Sends API
commands
Touch Control
3
API Commands Introduction for Yealink VCS
4
About the API Commands
The following conventions are used for the API command descriptions in this chapter. All
of the commands are case sensitive.
Convention Meaning
Example:
button <0|1|2|3|4|5|6|7|8|9|*|#>
<param1|param2|param3>
Returning Example:
Send:
button 0\r\n
return
button 0\r\n
Example:
Send:
return
Note The API commands listed in this guide are in alphabetical order. To make it easier for
users to manage and organize these commands, new commands will be added to the
table based on this rule.
This rule applies to reading and sorting API commands. It is not a rule for sending API
commands. The format of sending API commands is detailed in each API command.
5
API Commands Introduction for Yealink VCS
\r\n identifier represents the end of the API command. Every API command must end
with \r\n.
\r\n identifier represents the end of the API command. Every API command returned
carries \r\n.
Additional Tips
Parameter list is optional. The command may or may not have parameters.
Commands may or may not have string. The string should be enclosed in quotes.
Successful Response
Returning control commands (the control system sends control commands to video
conferencing system)
Command param\r\n
Returning query commands (the control system sends query commands to video
conferencing system)
Command data\r\n
6
About the API Commands
Command data\r\n
Note Param represents parameter supported by command. Data represents the data
user wants to query.
Invalid Response
Command is wrong:
7
API Commands Introduction for Yealink VCS
8
Detailed Description of API Commands
The API commands supported by Yealink VCS V2.0 are described below. Readers can
use TCP tools or serial tools to test these API commands in the environment mentioned
above.
The commands listed below are in alphabetical order. To make it easier for users to
manage and organize these commands, new commands will be added to the table
based on this rule.
1. answer <yes|no>
Valid values:
Parameter introduction
param - yes: answers calls.
(control command type)
- no: refuses calls.
Send:
answer yes\r\n
Example
return
answer yes\r\n
1. addrbook all
Parameter introduction
all Obtains all contacts’ information.
(control command type)
9
API Commands Introduction for Yealink VCS
- numid: contact id
Send:
addrbook all
return
addrbook 1 local “xiaoming” “123456” “231456” \r\n
addrbook 2 local “zhangpeng” “123456” “65412”
“98745”\r\n
Example
addrbook 3 local “pengp” “63251”\r\n
addrbook 4 conf “groud1_conf” “11111” “22222”
“5565655” “96363524”\r\n
addrbook 5 conf “group2_conf” “222241” “65412”
“654253”\r\n
Note:
- numid: contact id
Send:
Example
addrbook local get all
10
Detailed Description of API Commands
return
addrbook 1 local “xiaoming” “123456” “231456” \r\n
addrbook 2 local “zhangpeng” “123456” “65412” “98745”\r\n
addrbook 4 local “zzddff” “123456” “231456” \r\n
addrbook 5 local “zmndhdn” “123456” “65412” “98745”\r\n
addrbook local get all all done!
Note:
- numid: contact id
Send:
addrbook local get 2
return
addrbook 1 local “xiaoming” “123456” “231456” \r\n
addrbook 2 local “zhangpeng” “123456” “65412”
“98745”\r\n
addrbook local get 2 all done!
Example send:
addrbook conf get 3
return:
addrbook 1 conf “groud1_conf” “11111” “22222”
“5565655” “96363524”\r\n
addrbook 2 conf “group2_conf” “222241” “65412”
“654253”\r\n
addrbook 3 conf “group3_conf” “123654” “32165”
“52314”\r\n
11
API Commands Introduction for Yealink VCS
Note:
- numid: contact id
Send:
addrbook search “xiaoh”
Example return
addrbook 1 local “xiaoh” “123456” “231456” \r\n
addrbook 2 conf “xiaoh” “123456” “65412” “98745”\r\n
1. button power
Parameter introduction Sends the power button signal to the video conferencing
(control command type) system.
Send:
button power\r\n
Example
return
button power\r\n
12
Detailed Description of API Commands
2. button F1
button button F1
Parameter introduction Sends the red shortcut button signal to the video
(control command type) conferencing system.
Send:
button F1\r\n
Example
return
button F1\r\n
3. button F2
button button F2
Parameter introduction Sends the yellow shortcut button signal to the video
(control command type) conferencing system.
Send:
button F2\r\n
Example
return
button F2\r\n
4. button F3
button button F3
Parameter introduction Sends the blue shortcut button signal to the video
(control command type) conferencing system.
Send:
button F3\r\n
Example
return
button F3\r\n
5. button volume+
13
API Commands Introduction for Yealink VCS
Send:
button volume+\r\n
Example
return
button volume+\r\n
6. button volume-
Send:
button volume-\r\n
Example
return
button volume-\r\n
7. button zoom+
Send:
button zoom+\r\n
Example
return
button zoom+\r\n
8. button zoom-
Send:
button zoom-\r\n
Example
return
button zoom-\r\n
14
Detailed Description of API Commands
9. button up
button button up
Send:
button up\r\n
Example
return
button up\r\n
Parameter introduction Sends the down arrow button signal to the video
(control command type) conferencing system.
Send:
button down\r\n
Example
return
button down\r\n
Parameter introduction Sends the right arrow button signal to the video
(control command type) conferencing system.
Send:
button right\r\n
Example
return
button right\r\n
Parameter introduction Sends the left arrow button signal to the video
(control command type) conferencing system.
15
API Commands Introduction for Yealink VCS
Send:
button left\r\n
Example
return
button left\r\n
Send:
button select\r\n
Example
return
button select\r\n
Parameter introduction Sends the mute button signal to the video conferencing
(control command type) system.
Send:
button mute\r\n
Example
return
button mute\r\n
Parameter introduction Sends the home button signal to the video conferencing
(control command type) system.
Send:
button home\r\n
Example
return
button home\r\n
16
Detailed Description of API Commands
Parameter introduction Sends the video source button signal to the video
(control command type) conferencing system.
Send:
button show\r\n
Example
return
button show\r\n
Send:
button call\r\n
Example
return
button call\r\n
Parameter introduction Sends the delete button signal to the video conferencing
(control command type) system.
Send:
button delete\r\n
Example
return
button delete\r\n
17
API Commands Introduction for Yealink VCS
Send:
button hangup\r\n
Example
return
button hangup\r\n
Send:
button 1\r\n
Example
return
button 1\r\n
Send:
button recordstart\r\n
Example
return
button recordstart\r\n
Send:
button recordstop\r\n
Example
return
button recordstop\r\n
18
Detailed Description of API Commands
Send:
button screenshot\r\n
Example
return
button screenshot\r\n
19
API Commands Introduction for Yealink VCS
Returning
camera near <getposition|setposition “x” “y” “z”>\r\n
format
Send:
camera near getposition\r\n
return
camera near getposition "1910.000000" "1060.000000"
Example "50.000000"\r\n
send:
camera near setposition "110.000000" "160.000000" "30.000000"\r\n
return
camera near setposition "110.000000" "160.000000" "30.000000"\r\n
1. callinfo all
Parameter
introduction
Returns information about each connection in the
(control all
call.
command
type)
20
Detailed Description of API Commands
Parameter explanation:
21
API Commands Introduction for Yealink VCS
22
Detailed Description of API Commands
(control
command
type)
23
API Commands Introduction for Yealink VCS
Parameter explanation:
24
Detailed Description of API Commands
Note:
25
API Commands Introduction for Yealink VCS
Dial “dialstring”
Valid values:
Valid values:
26
Detailed Description of API Commands
Send:
dial manual video sip “auto” “70001”\r\n
Example
return
dial manual video sip “auto” “70001”\r\n
Note:
Format:
Send:
Example donotdisturb global get\r\n
return
27
API Commands Introduction for Yealink VCS
Note:
Format:
The video
The video conferencing system provides active feedback to
conferencing
the control system:
system
donotdisturb talk get on\r\n
provides active
feedback to The control system receives the command:
the control donotdisturb talk get on\r\n
system
The video conferencing system provides active feedback to
the control system:
Send:
Example donotdisturb talk get\r\n
return
28
Detailed Description of API Commands
1. gendial <0|1|2|3|4|5|6|7|8|9|*|#>
Parameter introduction
Generates DTMF dialing tones.
(control command type)
Send:
gendial 0\r\n
Example
return
gendial 0\r\n
1. getcallid
getcallid getcallid
Send:
getcallid\r\n
return
getcallid “callid: 654121” “remotestr: 10.3.3.1”\r\n
Example
getcallid “callid: 654122” “remotestr: 10.3.3.2”\r\n
getcallid “callid: 654123” “remotestr: 10.3.3.3”\r\n
getcallid “callid: 654124” “remotestr: 10.3.3.4”\r\n
getcallid all done\r\n
29
API Commands Introduction for Yealink VCS
2. history all
Parameter introduction
all Lists all call history.
(control command type)
Note:
Send:
history all
return
history 1 placed “xiaom” “2015-06-01” “00:00:43”
“123456” “321654” “222222333”\r\n
30
Detailed Description of API Commands
Note:
Send:
history placed get all\r\n
return
history 1 placed “xiaom” “2015-06-01” “00:00:43” “123456”
Example “321654” “222222333”\r\n
31
API Commands Introduction for Yealink VCS
Note:
Send:
history placed get 2\r\n
return
history 1 placed “xiaom” “2015-06-01” “00:00:43” “123456”
Example “321654” “222222333”\r\n
1. inputsource camera
Parameter introduction
camera Specifies the camera to be the video source.
(control command type)
Send:
inputsource camera\r\n
Example
return
inputsource camera\r\n
32
Detailed Description of API Commands
2. inputsource pc
inputsource inputsource pc
Parameter introduction
pc Specifies the PC to be the video source.
(control command type)
Send:
inputsource pc\r\n
Example
return
inputsource pc\r\n
3. inputsource share
Send:
inputsource share\r\n
Example
return
inputsource share\r\n
- Caller name
33
API Commands Introduction for Yealink VCS
system
Send:
incoming “num:700051” “name:xiaopeng”\r\n
Example
return
incoming “num:700051” “name:xiaopeng”\r\n
Valid values:
Note:
Format:
34
Detailed Description of API Commands
Send:
mute near get
return
mute near get on\r\n
send:
mute near get
Example
return
mute near get off\r\n
send:
mute near on
return
mute near on\r\n
Returning
preset near <go|set> <0|1|2|3|4|5|6|7|8|9>\r\n
format
Send:
preset near go 0\r\n
Example
return
preset near go 0\r\n
1. storage get
35
API Commands Introduction for Yealink VCS
Send:
storage get\r\n
return
Example storage get available\r\n
storage get\r\n
return
storage get unavailable\r\n
1. sysstatus get
Note:
36
Detailed Description of API Commands
Send
sysstatus get\r\n
return
sysstatus get sleeping\r\n
sysstatus get all done!
Send
sysstatus get\r\n
return
sysstatus get idle\r\n
sysstatus get all done!
Send
sysstatus get\r\n
Return
sysstatus get talking max\r\n
sysstatus get all done!
37
API Commands Introduction for Yealink VCS
sysstatus get\r\n
Return
sysstatus get outgoing “diastr:9865412” “callid:
653214” “calltype: video”\r\n
sysstatus get all done!
Send:
sysstatus get\r\n
return
sysstatus get ringing “dialstr:9865412” “callid:653214”
“calltype:autdio”\r\n
sysstatus get all done!
Send
systatus get\r\n
return
sysstatus get talking “dialstr:9865412”
“callid:654321” “calltype:audio” “protocol:sip” “direction:
incoming/outgoing”\r\n
38
Detailed Description of API Commands
Send
syssstatus get\r\n
Return
sysstatus get talking “dialstr:9865412”
“callid:654321” “calltype:audio” “protocol: sip” “direction:
Note incoming/outgoing”\r\n
sysstatus get ringing “dialstr:9865412”
“callid:653214” “calltype:autdio”\r\n
sysstatus get all done!
39
API Commands Introduction for Yealink VCS
Returning
volume <get|up|down|set>\r\n
format
Send:
volume get\r\n
return
volume get 10\r\n
send:
volume up
Example
return:
volume up\r\n
send:
volume set 10
return
volume set 10\r\n
version version
version\r\n
Note:
Format:
Sending format
The video conferencing system provides active feedback to
the control system:
40
Detailed Description of API Commands
41