P
P
Pontius712018-07-17 16:35:55
postfix
Pontius71, 2018-07-17 16:35:55

Freepbx content sendEmail.pl?

I've looked all over the Internet, I can't find a perl script anywhere to send a letter. The most common task is to set up a notification to the mail when a call is missed in the queue.
added to /etc/asterisk/extensions_override_freepbx.conf

[ext-queues]

exten => h,1,ExecIf($["${CDR(dstchannel)}"=""]?System(/usr/local/bin/sendmail.pl -f
адрес@отправителя -t адрес@получателя -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,)

sending mail itself works if you write mail -s theme [email protected] < /dev/null

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question