Skip to content

Instantly share code, notes, and snippets.

@zeljunior
Forked from marcelog/extensions.conf
Created November 2, 2019 20:39
Show Gist options
  • Save zeljunior/d84f2c95d5b16010a07497834f4fabb8 to your computer and use it in GitHub Desktop.
Save zeljunior/d84f2c95d5b16010a07497834f4fabb8 to your computer and use it in GitHub Desktop.

Revisions

  1. @marcelog marcelog created this gist May 29, 2016.
    6 changes: 6 additions & 0 deletions extensions.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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