Last active
July 19, 2022 13:05
-
-
Save AndiDittrich/f5e271ba1bca72ef7c6c1e0953f07efc to your computer and use it in GitHub Desktop.
Tomedo - initiate external call via Apple Script for Grandstream Phones
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Note: only supported in GXP21xx and GRP26xx series | |
-- Grandstream Phone Params - phone requires a statically assigned address or internal DNS name! | |
set PhoneAddr to "172.16.XXX.XXX" | |
set PhonePasswd to "mySecretPassphrase" | |
-- Tomedo replaces the xxx with the callee number | |
set CallTarget to "xxx" | |
-- execute webhook via curl http get | |
do shell script "curl -X GET \"http://" & PhoneAddr & "/cgi-bin/api-make_call?passcode=" & PhonePasswd & "&hs=1&phonenumber=" & CallTarget & "\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment