Commit afe80bf5 authored by Andrey Shevchuk's avatar Andrey Shevchuk

send_wakeup_device script: added device_id arg

parent 27beee5f
#/bin/sh
if [ -z "$1" ]; then
echo Usage: ./$(basename $0) $1 "[registration_type{gcm|apns|apns_voip}:device_registration_id] [call_unique_id] [caller_id]"
echo Usage: ./$(basename $0) $1 " [username{tenant-ext}] [device_idX[,device_idN]] [call_unique_id] [caller_id]"
exit 1
fi
DATA="{\"action\":\"wakeup\",\"device_id\":\"$1\",\"uniqueid\":\"$2\",\"callid\":\"$3\"}"
DATA="{\"action\":\"wakeup\",\"ext\":\"$1\",\"device_id\":\"EXCEPT:$2\",\"uniqueid\":\"$3\",\"callid\":\"$4\"}"
/usr/bin/curl --insecure 'http://127.0.0.1:5000/publish/post/wakeup' -H 'Content-Type: application/json;charset=UTF-8' --data-binary ${DATA}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment