[ext-queues]
exten => h,1,ExecIf($["${CDR(dstchannel)}"=""]?System(/usr/local/bin/sendEmail -f
pbx1@company.ru -t info@company.ru -u "Queue ${NODEST} missed call from
${CALLERID(num)}" -m "Missed call in Queue ${NODEST} from
${CALLERID(num)}" -o message-charset=UTF-8))
exten => h,2,Macro(hangupcall,)
it is cool working on asterisk 11, but don`t want to work on asterisk 19
same time /usr/local/bin/sendEmail works via command line,
in log it is “executing”
Executing [s@call:1] System("SIP/1111111-00000037", "/usr/local/bin/sendEmail ___________________________") in new stack, but nothing happens.
! is run directly from the console process, so does not reflect the environment in which the daemon is running, so a success with ! doesn’t necessarily mean that System will work from the dialplan.