⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sendmessage

📁 SIP(Session Initiation Protocol)是由IETF定义
💻
字号:
#!/bin/shif [ "z$2" = "zrecord-prompt" ]then    filename=`date +%Y%m%d%H%M%S`    user=`echo $3 | perl -ne 'if(/^([0-9]{5})/) { print $1,"\n";}'`    if [ "z$user" != "z" -a -d /usr/local/vocal/var/vmhome/${user} ]    then        cp $1 /usr/local/vocal/var/vmhome/${user}/greeting.wav        chmod a+w  /usr/local/vocal/var/vmhome/${user}/greeting.wav    else        echo did not work, no directory ${user}    fielseDEBUG=1#######################################################################  choose one of these options depending on whether you have metasend#  (from the metamail package), mmail (a perl script which requires#  Net::SMTP and MIME::Lite), or sendmime (sendMime.sh , a small shell#  script written solely for the purpose of voice mail support)#  installed.######################################################################MIME_SENDER=sendmimeMETASEND_CMD=metasendVOCAL_BASE=/usr/local/vocal # VOCAL_BASEVOCAL_BASE_CONFIGURED=@prefix@if [ "x${VOCAL_BASE_CONFIGURED}" != "x@""prefix@" ]then    VOCAL_BASE=${VOCAL_BASE_CONFIGURED}fiMMAIL_CMD=${VOCAL_BASE}/bin/voicemail/mmailSEND_MIME_CMD=${VOCAL_BASE}/bin/voicemail/sendMime.shBASE64_ENCODE_CMD=${VOCAL_BASE}/bin/voicemail/base64encoder# this tries to find out where sendmail is installed on your boxSENDMAIL_CMD=sendmailif [ -x /usr/bin/sendmail ]then    SENDMAIL_CMD=/usr/bin/sendmailfiif [ -x /usr/lib/sendmail ]then    SENDMAIL_CMD=/usr/lib/sendmailfiif [ -x /usr/sbin/sendmail ]then    SENDMAIL_CMD=/usr/sbin/sendmailfiSENDMAIL_CMD="${SENDMAIL_CMD} -t"if [ "z${DEBUG}" = "z1" ]then    echo From: $3    echo To: $2    echo Attachment: $1ficase ${MIME_SENDER} in  metasend)        ${METASEND_CMD} -b -D VoiceMessage.wav -e base64 -S 10485760 -f $1 -F $3 -s "VoiceMail Message" -t $2 -m "audio/wav; name=\"VoiceMessage.wav\"" ;        rm $1;	;;  mmail)	${MMAIL_CMD} -u $3 -s "VoiceMail Message" -m $1 $2;        rm $1;	;;  sendmime)	${SEND_MIME_CMD} $2 $3 $1 ${BASE64_ENCODE_CMD} | ${SENDMAIL_CMD};        rm $1;	;;esacfiexit#

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -