How-To: Remote Control the Robin
Robin Tech Note
Making calls using HTTP commands
You can control the Robin to make calls, disconnect calls and retrieve the current call status.
The Robin will answer to these commands in JSON.
Command:
curl -u admin:<password> “http://<address>/api/v1/call_
setup?number=501”
Goal:
Call extension 501
Answer:
{
“ok” : true
}
Command:
curl -u admin:<password> “http://<address>/api/v1/call_status”
Goal:
Retrieve the call status of the Robin
Answer:
{
“rv” : {
“status” : “outgoing call to 501”
},
“ok” : true
}
Command:
curl -u admin:<password> “http://<address>/api/v1/call_hangup”
Goal:
disconnect the call (call hangup)
Answer:
{
“ok” : true
}
Command:
curl -u admin:<password> “http://<address>/api/v1/api_ping”
Goal:
ping the Robin (to check if it responds)
Answer:
{
“rv” : {
“pong” : “pong”
},
“ok” : true
}
! Note: If the HTTP command to dial an extension contains an extension that is already known
in the phone book, the Robin dials that extension and will use the profile that is defined for that
extension. !