Telegram - ?

, IP Asterisk ! . : , , , , , .

. .


Bash Asterisk

bash. . :

#!/bin/bash
dt=$(date '+%m/%d/%Y %r');
echo -e "!        Asterisk \n\n
    $dt \n\n
     - $5 \n\n
   -  $7 \n\n
     \n\n" | mail -a /var/spool/asterisk/monitor/$1/$2/$3/$6 -s "  " info@merionet.ru

, ( $dt) Asterisk:

  • $1 - ;
  • $2 - ;
  • $3 - ;
  • $4 - ;
  • $5 - ();
  • $6 - ;
  • $7 - ;
  • $dt - ;

Asterisk. .sh :

touch /var/lib/asterisk/bin/rectoemail.sh

:

chown asterisk:asterisk rectoemail.sh
chmod 774 rectoemail.sh

:

vim /var/lib/asterisk/bin/rectoemail.sh 

. , , . vim o , . , Esc :x! + Enter . .


FreePBX

. SettingsAdvanced Settings. , Display Readonly Settings Override Readonly Settings Yes.

Post Call Recording Script :

bash /var/lib/asterisk/bin/rectoemail.sh ^{YEAR} ^{MONTH} ^{DAY} ^{TIMESTR} ^{FROMEXTEN} ^{CALLFILENAME}.^{MIXMON_FORMAT} ^{ARG3}
    email  Asterisk

. :

  email   Asterisk

?

 .

P.S. , :)

"",