[Asterisk-Users] Re: faxdetect on voicemail

Justin Newman jnewman at newmantelecom.com
Sun Oct 30 00:43:20 MST 2005


We have a voicemail solution, but here's a way you can do it in your
dialplan below. This also allows you to check messages remotely and/or
disable voicemail. Disabling voicemail is desirable on real fax machine or
credit card lines.

[macro-resvoice-handlevoicemail]
exten => s,1,DBGet(voicemail=VOICEMAIL/${ARG1})
exten => s,2,GotoIf($["${voicemail}" = "NO"]?done,1:3)
exten => s,3,Answer
exten => s,4,Wait(1)
exten =>
s,5,NVBackgroundDetect(/var/spool/asterisk/voicemail/default/${ARG1}/unavail
,t)
exten => s,6,Voicemail(s${ARG2})
exten => s,7,Hangup
exten => fax,1,NVGetVoicemailUser(${ARG1})
exten => fax,2,GotoIf($["${VMB_USER_EMAIL}" = ""]?s,6:3)
exten =>
fax,3,NVFaxEmail(voicemail at somewhere.com,${VMB_USER_EMAIL},p,You,${VMB_USER_
FULLNAME})
exten => fax,4,Hangup
exten => #,1,VoicemailMain(${ARG2})
exten => #,2,Hangup
exten => done,1,NoOp

Justin Newman

>Date: Thu, 27 Oct 2005 09:59:30 +0330
>From: Paradise Dove <pardove at gmail.com>
>Subject: [Asterisk-Users] faxdetect on voicemail
>
>hi,
>is there anyway to just enable faxdetection in voicemail?
>
>thanks,
>paradise dove




More information about the asterisk-users mailing list