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

[EMAIL PROTECTED]

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jim Sturtevant
Sent: Thursday, June 09, 2005 1:25 PM
To: [email protected]
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!

_______________________________________________
Asterisk-Users mailing list
[email protected]
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