How-To: Remote Control the Robin
Robin Tech Note
Command:
curl -u admin:<password> “http://<address>/api/v1/get_callprio_
list?button=1”
Goal:
Retrieve the call list (in this example: 1001, 1002 en 1003, for button 1)
Answer:
{“ok”:true,”rv”:[
{“name”:”Yealink_1”,”number”:”1001”},
{“name”:”Yealink_2”,”number”:”1002”},
{“name”:”Bria”,”number”:”1003”}
]}
Command:
curl -u admin:<password> “http://<address>/api/v1/set_callprio_list?first=
name1&second=name2&third=name3&button=2”
Goal:
Configure the call list. In this example: First=name1, Second=name2,
Third=name3, this is the call list for button no. 2.
Answer:
{
“ok”:true,”rv”:[]
}
Command:
curl -u admin:<password> “http://<address>/api/v1/set_sip_config ?proto=
udp&host=192.168.200.202&port=5060&username=test&
password=secret®ister=1”
Goal:
Configure the SIP settings of the Robin. In this example: SIP protocol=UDP,
SIP proxy / Registar=192.168.200.202, SIP proxy port number=5060,
Username=test, Password=secret, Register enabled (1).
Answer:
{
“ok”:true,”rv”:[]
}
Command:
curl -u admin:<password> “http://<address>/api/v1/get_sip_config”
Goal:
Retrieve the SIP configuration from the Robin
Answer:
{“ok”:true,”rv”:
{“proto”:”udp”,”secondary_port”:5060,”secondary_host”:”ip or hostname”,
”host”:”192.168.200.202”,”port”:5060,”expires”:3600,”register”:true,
”password”:”secret”,”username”:”test”,”secondary”:false}}