|
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! -----Original 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
