Created
March 8, 2019 21:32
-
-
Save swchris/c7986064221b27a63d9b1e240e8d8aee to your computer and use it in GitHub Desktop.
This file contains 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
exten => _X.,1,Set(CURL_RESULT=${CURL(http://domain.com/test.json)}) | |
same => n,Set(result=${JSONELEMENT(CURL_RESULT,result/subfield)}) | |
same => n,GotoIf($["${result}" = "1"]?result1:result2) | |
same => n(result1),Verbose(Result 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment