N
N
NUr_Explorer2016-02-03 08:40:16
Asterisk
NUr_Explorer, 2016-02-03 08:40:16

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,)

on one of the forums they advised "Make the first line display the value of the variable $["${CDR(dstchannel)}"=""] , and then gut the same DIALSTATUS or other variables.", but I don't understand what exactly needs to be done

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
vladimir1211, 2019-08-15
@vladimir1211

https://habr.com/en/post/463829/ here he told how he solved this problem.

R
Rsa97, 2016-02-03
@Rsa97

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,)

B
BaurBaur, 2017-10-17
@BaurBaur

Good afternoon! I wanted to set up FreePBX 13 about missed calls. Who figured out I'm sorry to help))). I don't know where to start)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question