background image

How-To: Remote Control the Robin

Robin Tech Note

Next, create an ‘Action’ to go with the ‘Source’. To do this, click on ‘Add action’.

• 

Define a name for this ‘Action’

• 

As ‘Event’, select the just created ‘Source’

• 

As ‘Type’, select  ‘Call’ (the Robin will start an outgoing call when triggered)

• 

As ‘Call extension’, select the default extension to dial

• 

Apply settings

If the following HTTP request is received by the Robin:

 

 http://<address>/evmgr/demo

The Robin SV will dial the default extension that is set in the ‘Action’.

Содержание Robin SmartView

Страница 1: ...Version 3 5 0 Robin NL Datum 01 11 2015 How To Remote Control the Robin ROBIN Tech Note ...

Страница 2: ...How To Remote Control the Robin Robin Tech Note About this Tech Note This Tech Note is meant for the following Robin products Robin SIP Robin SV Robin CV Robin HV Software release 3 5 0 and higher ...

Страница 3: ...obin SIP SV CV and HV can be controlled using HTTP commands It s also possible to retrieve data from these Robin devices such as call status streaming video and version info You can use 1 Directly with HTTP commands eg with cURL 2 The Events option in the web interface ...

Страница 4: ... CV and HV are equipped with a high resolution camera It generates a Motion JPEG video stream that can be retrieved with the following command curl u admin password http address pbhelper stream mjpeg password the password for the admin account address the Robin SV address Note Multiple simultaneous MJPEG video streams can affect the performance of the Robin negatively You can also set the preferre...

Страница 5: ...word http address camera frame jpeg password the password for the admin account address the Robin SV address You can also set the preferred resolution and compression level just add the following to the URL width 320 height 240 resolution for the requested video 320x240 pixels MAX resolution 720x576 quality 80 JPEG quality level 80 MAX JPEG quality level 100 Note Low resolution and low JPEG qualit...

Страница 6: ... 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 ...

Страница 7: ...ll tones and voice Use this option to listen in on the Robin The audio mute can also be disabled using one command The Robin will answer to these commands in JSON Command curl u admin password http address api v1 mute_set mute tones_ incoming Goal mute all tones from an incomming phone call Answer rv mute tones_incoming ok true Command curl u admin password http address api v1 mute_set mute tones_...

Страница 8: ...word http address api v1 mute_set mute off Goal disable the audio mute all sound will be on Answer rv mute off ok true Command curl u admin password http address api v1 mute_get Goal retrieve the audio mute status Answer rv mute off all_audio tones_all tones_incoming ok true ...

Страница 9: ...ss api v1 dooropener_open Goal Open the door and keep it open close the relay Answer ok true Command curl u admin password http address api v1 dooropener_close Goal Close the door open the relay Answer ok true Command curl u admin password http address api v1 dooropener_pulse Goal Open the door and keep it open for the time set in the GUI After that close the door Answer ok true Command curl u adm...

Страница 10: ...close the relay Answer rv ok true Command curl u admin password http address api v1 switch_ set state off switch 1 Goal Deactivate switch no 1 open the relay Answer rv ok true Command curl u admin password http address api v1 switch_ set state pulse duration 5 switch 1 Goal Activate switch no 1 for the duration of 5 seconds pulse the relay Answer rv ok true Duration is a variable value in seconds ...

Страница 11: ...ex 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 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 1...

Страница 12: ... 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 register 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 ...

Страница 13: ...dmin password http address api v1 tunnel_connect Goal Start the Go To Robin connection to enable remote support access to the Robin Answer ok true rv Command curl u admin password http address api v1 tunnel_disconnect Goal Close the Go To Robin connection Answer ok true rv Command curl u admin password http address api v1 tunnel_status Goal Retrieve the connection status of the Go To Robin connect...

Страница 14: ... the status during the update command Continue checking until the output is empty Command curl u admin password http address api v1 get_upgrade_status Goal Retrieve the actual status during the update check Answer ok true rv Checking for new versions busy or ok true rv done 3 Retrieve the software versions Is the version_available identical to the version_installed No update available Is the versi...

Страница 15: ...Answer ok true rv Upgrading busy or ok true rv Ok done 6 As soon as the upgrade is done check the status of the upgrade using the get_versions com mand Is the version_installed higher than the version running The upgrade was success ful and the Robin needs to reboot See step 7 Command curl u admin password http address api v1 get_versions Goal Retrieve the software versions Answer ok true rv versi...

Страница 16: ...grade Is the version_run ning identical to the version_installed and is the version_available empty The upgrade went successfully Command curl u admin password http address api v1 get_versions Goal Retrieve the software versions Answer ok true rv version_available version_installed dev 3870 version_running dev 3870 ...

Страница 17: ...te Miscellaneous settings using HTTP commands Use HTTP commands to make miscellaneous settings Command curl u admin password http address api v1 reset_defaults Goal Restore the factory settings The Robin will automatically reboot Answer ok true rv ...

Страница 18: ...video id a unique string for this video url the url of the videostream event_data the event data of the event that triggered the recording Arguments button filters on button number optional Command curl u admin password http address api v1 video_list button 3 Goal Retrieve the video list for a specific button in this case button 3 Answer ok true rv video_list call_ids c3aa4538 time 1394113333 id 2...

Страница 19: ...TINF 10 no desc recording 2014 03 06 14 20140306144219_00000002_10 ts EXTINF 10 no desc recording 2014 03 06 14 20140306144229_00000003_10 ts EXTINF 8 no desc recording 2014 03 06 14 20140306144239_00000004_8 ts EXTINF 10 no desc recording 2014 03 06 14 20140306144247_00000005_10 ts EXT X ENDLIST video_del Remove a specific video Arguments id id of the video see video_list Command curl u admin pas...

Страница 20: ...Goal Retrieve the call log Answer ok true rv call_log number 101 10 0 0 26 direction incoming time 1386753209 id 55826c80 duration 44 result hangup answered true number 101 10 0 0 26 direction incoming time 1386753970 id 19b46a5f duration 10 result busy answered false number 101 10 0 0 26 direction incoming time 1386754004 id 483ae77c duration 3 result error answered false ...

Страница 21: ... a Source this will be the activator of the event The second step is to create an Action that will follow the Source Log on to the Robin web interface and navigate to System Events click on Add source Define a name for Source eg Demo Select as Type Http Create a unique Http path eg demo Apply settings The HTTP request to use will be http address evmgr path address the address of the Robin evmgr ev...

Страница 22: ...his Action As Event select the just created Source As Type select Call the Robin will start an outgoing call when triggered As Call extension select the default extension to dial Apply settings If the following HTTP request is received by the Robin http address evmgr demo The Robin SV will dial the default extension that is set in the Action ...

Отзывы: