How about the System() command? I haven't tried it but I wonder if
something like this would work.
Exten => 1234,1,System(/usr/bin/head
/var/spool/asterisk/vm/default/${EXTEN}/INBOX/busy.gsm)
Exten => 1234,2,Voicemail(u${EXTEN})
Exten => 1234,102,Voicemail(b${EXTEN})
As I understand it, System() will return -1 on errors (such as FILE NOT
FOUND) and continue to priority n+101. I'm not sure if that means -1 if
the program spits out an error, or if RUNNING the program itself is
unsuccessful. Might be that it returns 0 even if the file doesn't
exist, because as in my example, the program /usr/bin/head DOES exist.
Hey, if it works, post it!
Chris Coulthurst
<mailto:chris@shuksan.com> chris@shuksan.com
-----Original Message-----
From: asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Jim
Sturtevant
Sent: Thursday, June 09, 2005 1:25 PM
To: asterisk-users@lists.digium.com
Subject: [Asterisk-Users] voicemail check for busy message
Is there a way to check to see if a user has recorded a busy message?
If they haven't I would prefer to send them to "u" and play their
unavailable greeting. I know I can send them to "u" in both cases,
but
I would like to send them to "b" if a recorded busy greeting exists.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20050609/77fb80f0/attachment.htm