Answer the question
In order to leave comments, you need to log in
Why doesn't asterisk send dialog to mail?
We have Asterisk 13.7.0, the recording of conversations when calling to a certain direction is configured, it became necessary to send this record to the mail, added the following line to extensions.conf:
exten => _2xxxxxx,n,System(sendEmail -f [email protected] -t [email protected] -m test -a /home/records/${fname}.wav)
, thus it turned out such a miracle of thought:exten => _2xxxxxx,1,Set(CALLERID(num)=***********)
exten => _2xxxxxx,2,Set(CALLERID(name)=***********)
exten => _2xxxxxx,3,Set(fname=${STRFTIME(${EPOCH},,%Y-%m-%d/out-%H-%M)}-${CALLERID(number)}-${EXTEN})
exten => _2xxxxxx.,4,MixMonitor(/home/records/${fname}.wav)
exten => _2xxxxxx,n,Dial(SIP/${EXTEN}@xxtel,90,tTW)
exten => _2xxxxxx,n,StopMixMonitor()
exten => _2xxxxxx,n,Hangup()
exten => _2xxxxxx,n,System(sendEmail -f [email protected] -t [email protected] -m test -a /home/records/${fname}.wav)
postfix/sendmail[28582]: fatal: usage: sendmail [options]
, so this line succeeds. If in the console I executesendEmail -f [email protected] -t [email protected] -m test -a /home/records/test.wav
then the letter successfully leaves and the recipient receives everything, the rights to the sendEmail file are 0755. What else does he need from me? Where is the mistake? exten => _2xxxxxx,n,System(/usr/local/bin/sendEmail -f [email protected] -t [email protected] -m test)
but... it didn't help, there are no letters. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question