Hi, does anybody know how can i execute a shell command and save the result as an Asterisk variable?
core show functions does.
PS This is not a support forum.
exten => 4002,1,Answer
exten => 4002,n,Set(RESULT=${SHELL(date +%s)})
exten => 4002,n,NoOp(${RESULT})
exten => 4002,n,Hangup