Thanks Danny,
I made it working adapting your dialplan
exten => 12345,1,Answer
exten => 12345,n,System(/bin/ls
/var/spool/asterisk/voicemail/default/${EXTENSION}/temp.wav)
exten => 12345,n,verbose(returned ${SYSTEMSTATUS}
exten => 12345,n,Gotoif($["${SYSTEMSTATUS}" = "SUCCESS"]?play1)
exten => 12345,n,Voicemail(${extensi...@test)
exten => 12345,n,hangup
exten => 12345,n(play1),Voicemail(s${extensi...@test)
exten => 12345,n,hangup
Thanks so much,
Jonathan
On Tue, Jun 15, 2010 at 9:58 PM, Danny Nicholas <[email protected]> wrote:
> 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${numb...@test)
>
> exten => 930,n,hangup
>
> exten => 930(play1),n,Voicemail(${numb...@test)
>
> exten => 930,n,hangup
>
>
> ------------------------------
>
> *From:* [email protected] [mailto:
> [email protected]] *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(${numb...@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${numb...@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
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
--
Personal webpage - www.jonbaraq.eu
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users