Skip to content

Instantly share code, notes, and snippets.

@AndiDittrich
Last active July 19, 2022 13:05
Show Gist options
  • Save AndiDittrich/f5e271ba1bca72ef7c6c1e0953f07efc to your computer and use it in GitHub Desktop.
Save AndiDittrich/f5e271ba1bca72ef7c6c1e0953f07efc to your computer and use it in GitHub Desktop.

Revisions

  1. Andi Dittrich revised this gist Jul 19, 2022. No changes.
  2. Andi Dittrich created this gist Jul 19, 2022.
    10 changes: 10 additions & 0 deletions tomedo-make-external-api-call.scpt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    -- 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 & "\""