Skip to content

Instantly share code, notes, and snippets.

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)