What I'm trying to do is the following:
exten => _X.,1,Set(DialCommand=${CU
RL(
http://private.somesite.com/Engines/Dial.cfc?method=DialCall&IncomingNumber=${CALLERID(
dnid)})})
exten => _X.,n,${DialCommand}
The CURL command returns Dial(SIP/11.1.111.1/155512
12|300)
And the second line doesnt execute&.
If I make the second line
exten => _X.,n,Dial(${DialCommand})
and have the CURL return SIP/11.1.111.1/15551212|30
0
it works just fine.
I had thought that eval or something might work to have it execute the returned command, but I cant seem to get it to work.
The ultimate goal would be to have the CURL return multiple commands and split them up and execute them in order.
Thanks!
Start Free Trial