[asterisk-users] BUG or ???

Антон Сацкий satskiy.a at gmail.com
Fri Feb 24 15:30:52 CST 2017

Got a strange situation

exten => h,2,ExecIf($[${CALLERID(num)} = ' ']?Set(var29=${SHELL(curl -X
POST --header "Content-Type: application/json" --header "Accept:
application/json" -d "{\"Phone\": ${FROMEXTEN}, \"Source\": \"asterisk\"}" "

exten => h,3,NoOp(${var29})
exten => h,4,Macro(hangupcall,)
;--== end of [ext-queues] ==--;

so when i execute  it got

-- Executing [h at ext-queues:1] NoOp("SIP/100-00000050", "100") in new stack
    -- Executing [h at ext-queues:2] ExecIf("SIP/100-00000050",
in new stack
    -- Executing [h at ext-queues:3] NoOp("SIP/100-00000050", "") in new stack
    -- Executing [h at ext-queues:4] Macro("SIP/100-00000050", "hangupcall,")
in new st

U can see  that Execif = 0 = falce   but   somehow
Shell ${SHELL(curl -X POST --header "Content-Type: application/json"
--header "Accept: application/json" -d "{\"Phone\": ${FROMEXTEN},
\"Source\": \"asterisk\"}" "
executes and  get answer  from the server

i dont want it to be  executed

Thanks list for your help

Best regards
tel.   +380669197533
tel2. +380636564340
Paypal http://paypal.me/Satskiy
satskiy.a at gmail.com <mail%3Asatskiy.a at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170224/a9f68c30/attachment.html>

More information about the asterisk-users mailing list