Thanks Danny,<div><br></div><div>I made it working adapting your dialplan</div><div><br></div><div><div>exten => 12345,1,Answer</div><div>exten => 12345,n,System(/bin/ls /var/spool/asterisk/voicemail/default/${EXTENSION}/temp.wav)</div>
<div>exten => 12345,n,verbose(returned ${SYSTEMSTATUS}</div><div>exten => 12345,n,Gotoif($["${SYSTEMSTATUS}" = "SUCCESS"]?play1)</div><div>exten => 12345,n,Voicemail(${EXTENSION}@test)</div><div>
exten => 12345,n,hangup</div><div>exten => 12345,n(play1),Voicemail(s${EXTENSION}@test)</div><div>exten => 12345,n,hangup</div><div><br></div>Thanks so much,</div><div>Jonathan</div><div><br></div><div><br><div class="gmail_quote">
On Tue, Jun 15, 2010 at 9:58 PM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="EN-US" link="blue" vlink="blue">
<div>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">This should do the trick – might have to
change greet.WAV to some other value</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten => 930,1,Answer</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten => 930,n,System(/bin/ls
/var/spool/asterisk/voicemail/default/${NUMBER}/greet.WAV)</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten => 930,n,verbose(returned
${SYSTEMSTATUS}</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten =>
930,n,Gotoif($["${SYSTEMSTATUS}" = "SUCCESS"]?play1)</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten =>
930,n,Voicemail(s${NUMBER}@test)</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten => 930,n,hangup</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten =>
930(play1),n,Voicemail(${NUMBER}@test)</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">exten => 930,n,hangup</span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy"> </span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma"> <a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>] <b><span style="font-weight:bold">On Behalf Of </span></b>Jonathan González<br>
<b><span style="font-weight:bold">Sent:</span></b> Tuesday, June 15, 2010 3:37
PM<br>
<b><span style="font-weight:bold">To:</span></b> Asterisk Users Mailing List -
Non-Commercial Discussion<br>
<b><span style="font-weight:bold">Subject:</span></b> [asterisk-users]
Voicemail vm-intro played even when temp greetingis setup</span></font></p>
</div><div><div></div><div class="h5">
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Hi there,</span></font></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I am configuring a small voicemail server and I am facing the following
problem.</span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">Executing this command: </span></font><span><font size="1" face="Arial"><span style="font-size:9.0pt;font-family:Arial">exten => 1234,1,VoiceMail(${NUMBER}@test)</span></font></span></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">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.</span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">I have seen that to avoid the reproduction of vm-intro I can use the s
flag, doing something like this:</span></font></p>
</div>
<blockquote style="margin-left:30.0pt;margin-right:0in">
<div>
<p class="MsoNormal"><font size="3" face="Arial"><span style="font-size:12.0pt;font-family:Arial">e<span>xten =>
1234,1,VoiceMail(s${NUMBER}@test)</span></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
</blockquote>
<p class="MsoNormal"><span><font size="1" face="Arial"><span style="font-size:9.0pt;font-family:Arial">But the problem is that if I do that
nothing is played for the users that don't have personalized greeting.</span></font></span></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><span><font size="1" face="Arial"><span style="font-size:9.0pt;font-family:Arial">Any help would be appreciated.</span></font></span></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt"> </span></font></p>
</div>
<div>
<p class="MsoNormal"><span><font size="1" face="Arial"><span style="font-size:9.0pt;font-family:Arial">Thanks in advance,</span></font></span></p>
</div>
<div>
<p class="MsoNormal"><span><font size="1" face="Arial"><span style="font-size:9.0pt;font-family:Arial">Jonathan</span></font></span></p>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt">-- <br>
Personal webpage - <a href="http://www.jonbaraq.eu" target="_blank">www.jonbaraq.eu</a></span></font></p>
</div>
</div>
</div></div></div>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Personal webpage - <a href="http://www.jonbaraq.eu">www.jonbaraq.eu</a><br>
</div>