Created
May 29, 2016 18:34
-
-
Save marcelog/88190a3e208d1e8322aaa1374e1162ca 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.txt)}) | |
same => n,GotoIf($["${CURL_RESULT}" = "1"]?result1:result2) | |
same => n(result1),Verbose(Result 1) | |
same => n,Hangup | |
same => n(result2),Verbose(Result other) | |
same => n,Hangup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment