<div dir="ltr"><div>Got a strange situation</div><div><br></div><div><div>[ext-queues]</div><div>...</div><div>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\"}" "<a href="http://sIte.com:80/api/v1/calls?apiKey=UABVAEI&clientId=3">http://sIte.com:80/api/v1/calls?apiKey=UABVAEI&clientId=3</a>")}))<br></div><div><br></div><div>exten => h,3,NoOp(${var29})</div><div>exten => h,4,Macro(hangupcall,)</div><div>;--== end of [ext-queues] ==--;</div></div><div><br></div><div><br></div><div>so when i execute  it got</div><div><br></div><div><br></div><div><div>-- Executing [h@ext-queues:1] NoOp("SIP/100-00000050", "100") in new stack</div><div>    -- Executing [h@ext-queues:2] ExecIf("SIP/100-00000050", "<font color="#ff0000">0</font>?Set(var29=[{"RequestedCount":0,"MissedCount":7,"Total":7}])") in new stack</div><div>    -- Executing [h@ext-queues:3] NoOp("SIP/100-00000050", "") in new stack</div><div>    -- Executing [h@ext-queues:4] Macro("SIP/100-00000050", "hangupcall,") in new st</div></div><br clear="all"><div><br></div><div>U can see  that Execif = 0 = falce   but   somehow</div><div>Shell <font color="#0000ff">${SHELL(curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{\"Phone\": ${FROMEXTEN}, \"Source\": \"asterisk\"}" "<a href="http://sIte.com:80/api/v1/calls?apiKey=UABVAEI&clientId=3">http://sIte.com:80/api/v1/calls?apiKey=UABVAEI&clientId=3</a>")} </font> </div><div> executes and  get answer  from the server   <font color="#0000ff">[{"RequestedCount":0,"MissedCount":7,"Total":7}]</font></div><div><br></div><div>i dont want it to be  executed  </div><div><br></div><div><br></div><div><br></div><div>Thanks list for your help</div><div><br></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div>Best regards<br>Antony<br></div><div>tel.   +380669197533</div><div>tel2. +380636564340<br></div><div>Paypal <a href="http://paypal.me/Satskiy?ppid=PPC000654&cnac=PL&rsta=en_PL(en_DK)&cust=NN8XJS9XEP22C&unptid=21db79ac-ef8d-11e5-9553-9c8e992ea258&t=&cal=4d776c21ca7d2&calc=4d776c21ca7d2&calf=4d776c21ca7d2&unp_tpcid=ppme-social-business-profile-created&page=main:email&pgrp=main:email&e=op&mchn=em&s=ci&mail=sys" target="_blank">http://paypal.me/Satskiy</a><br></div><div><a href="mailto:mail%3Asatskiy.a@gmail.com" target="_blank">satskiy.a@gmail.com</a></div></div></div></div></div></div>
</div>