Skip to content

Instantly share code, notes, and snippets.

@AndiDittrich
Last active July 19, 2022 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndiDittrich/f5e271ba1bca72ef7c6c1e0953f07efc to your computer and use it in GitHub Desktop.
Save AndiDittrich/f5e271ba1bca72ef7c6c1e0953f07efc to your computer and use it in GitHub Desktop.
Tomedo - initiate external call via Apple Script for Grandstream Phones
-- 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