Hello everyone. What I want is to make a call to a certain extension and when the call ends the recording is automatically sent to an email. The part of the recording is done with the MixMonitor function, now my question is how can I send that recording to an email.
The command I am using is the following:
exten => 464,1, MixMonitor (/var/spool/asterisk/monitor/test1.wav, [m (464)])
But with this command it only sends the recording to the voice mailbox not to the email.
I also tried with other command:
exten => h,n,System(mail -s “Email” username@domain.com -A /var/spool/asterisk/monitor/test1.wav <<< “Body email”)
but it didn’t work either. For emails I am using exim4.
I am attentive to your comments. Greetings.