Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pbxm-perl-lib-el7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
static
pbxm-perl-lib-el7
Commits
afe80bf5
Commit
afe80bf5
authored
Nov 10, 2021
by
Andrey Shevchuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send_wakeup_device script: added device_id arg
parent
27beee5f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
send_wakeup_device
opt/thirdlane/perl_lib/local/bin/send_wakeup_device
+2
-2
No files found.
opt/thirdlane/perl_lib/local/bin/send_wakeup_device
View file @
afe80bf5
#/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}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment