Jonathan González
2010-Jun-15 20:36 UTC
[asterisk-users] Voicemail vm-intro played even when temp greeting is setup
Hi there, I am configuring a small voicemail server and I am facing the following problem. Executing this command: exten => 1234,1,VoiceMail(${NUMBER}@test) When a user does not have a customized temporary greeting vm-intro message is played asking for the message to the user but when the user has already a temporary greeting both the temporary greeting and vm-intro are played. Basically what I would like to do is to avoid this second scenario so when a user has a customized temporary greeting just that is played and not vm-intro is played. I have seen that to avoid the reproduction of vm-intro I can use the s flag, doing something like this: exten => 1234,1,VoiceMail(s${NUMBER}@test) But the problem is that if I do that nothing is played for the users that don't have personalized greeting. Any help would be appreciated. Thanks in advance, Jonathan -- Personal webpage - www.jonbaraq.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/c2f319b4/attachment-0001.htm
Danny Nicholas
2010-Jun-15 20:58 UTC
[asterisk-users] Voicemail vm-intro played even when temp greetingis setup
This should do the trick ? might have to change greet.WAV to some other value exten => 930,1,Answer exten => 930,n,System(/bin/ls /var/spool/asterisk/voicemail/default/${NUMBER}/greet.WAV) exten => 930,n,verbose(returned ${SYSTEMSTATUS} exten => 930,n,Gotoif($["${SYSTEMSTATUS}" = "SUCCESS"]?play1) exten => 930,n,Voicemail(s${NUMBER}@test) exten => 930,n,hangup exten => 930(play1),n,Voicemail(${NUMBER}@test) exten => 930,n,hangup _____ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Jonathan Gonz?lez Sent: Tuesday, June 15, 2010 3:37 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] Voicemail vm-intro played even when temp greetingis setup Hi there, I am configuring a small voicemail server and I am facing the following problem. Executing this command: exten => 1234,1,VoiceMail(${NUMBER}@test) When a user does not have a customized temporary greeting vm-intro message is played asking for the message to the user but when the user has already a temporary greeting both the temporary greeting and vm-intro are played. Basically what I would like to do is to avoid this second scenario so when a user has a customized temporary greeting just that is played and not vm-intro is played. I have seen that to avoid the reproduction of vm-intro I can use the s flag, doing something like this: exten => 1234,1,VoiceMail(s${NUMBER}@test) But the problem is that if I do that nothing is played for the users that don't have personalized greeting. Any help would be appreciated. Thanks in advance, Jonathan -- Personal webpage - www.jonbaraq.eu -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100615/b5b9b16f/attachment.htm