Robin Tech Note
Configure the SIP-configuration using HTTP commands
The SIP configuration of the Robin can be programmed and read using HTTP commands.
The Robin will answer to these commands in JSON.
Command: curl -u admin:<password> "http://<address>/api/v1/get_button_count"
Goal: Retrieve the amount of available buttons on the Robin (1,2,4 or 6) -> Answer=1
Answer:
Command: curl -u admin:<password> "http://<address>/api/v1/get_phonebook"
Goal: Retrieve the phone book data (in this example: no. 1001, 1002 and 1003)
Answer:
Command: curl -u admin:<password> "http://<address>/api/v1/add_phonebook_entry?
description=Reception&number=101&allow_register=0"
Goal: Add a Phone book entry. In this example: Description=Reception,
number=101, Allow register (Peer to Peer) disabled (0)
Answer:
Command: curl -u admin:<password> "http://<address>/api/v1/delete_phonebook_
entry?index=1"
Goal: Remove entry no. 1 from the phone book.
Answer:
After removal of a phone book entry, the numbering of the remaining entries will change. Use the
'get_phonebook' command to retrieve the updated entries and numbers.
{
"ok":true,"rv":1
}
{"ok":true,"rv":[
{"profile":"---","index":1,"description":"Bria","extension":"1003",
"allow_register":false},
{"profile":"---","index":2,"description":"Yealink_1","extension":"1001",
"allow_register":false},
{"profile":"---","index":3,"description":"Yealink_2","extension":"1002",
"allow_register":false}]}
{
"ok":true,"rv":[]
}
{
"ok":true,"rv":[]
}
How-To: Remote Control the Robin
Need help?
Do you have a question about the SmartView and is the answer not in the manual?