Answer the question
In order to leave comments, you need to log in
FreePBX Asterisk 13 missed call queue alert?
Hello, I found a lot of examples on the Internet of how to make notification of missed calls from the queue to e-mail, but it doesn’t work quite correctly for me (alerts come for all calls (accepted and not accepted). I’ll make a reservation right away, I’m not a system administrator, and moreover, he is not connected with telephony in any way.But I decided to help the SOCIAL clinic in the city of Kazan free of charge.I
use the code
[ext-queues]
exten => h,1,ExecIf($["${CDR(dstchannel)}"=""]?System(/usr/local/bin/sendEmail.pl -f [email protected] -t [email protected] -u "Пропущенный звонок" -m "Пропущен звонок из очереди с номера ${CALLERID(num)}" -s smtp.gmail.com:587 -xu [email protected] -xp pass -o tls=yes -o message-charset=UTF-8))
exten => h,2,Macro(hangupcall,)
Answer the question
In order to leave comments, you need to log in
https://habr.com/en/post/463829/ here he told how he solved this problem.
Try like this:
[ext-queues]
exten => h,1,GotoIf($["${QUEUESTATUS}"="CONTINUE"]?answered)
same => n,ExecIf($["${CDR(dstchannel)}"=""]?System(/usr/local/bin/sendEmail.pl -f [email protected] -t [email protected] -u "Пропущенный звонок" -m "Пропущен звонок из очереди с номера ${CALLERID(num)}" -s smtp.gmail.com:587 -xu [email protected] -xp pass -o tls=yes -o message-charset=UTF-8)
same => n(answered),Macro(hangupcall,)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question