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([EMAIL PROTECTED],${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 <[EMAIL PROTECTED]>
>Subject: [Asterisk-Users] faxdetect on voicemail
>
>hi,
>is there anyway to just enable faxdetection in voicemail?
>
>thanks,
>paradise dove

_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to