Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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