OK, this will work and is probably a better solution than the language idea. Although, the language idea just sounds easier and a little more fun :-)<div><br></div><div>Hmm, I think I will try the language solution and see if it works with a fake country/language code like Cust327 or whatever.</div>
<div><br>Just wonder if that will break anything else now or with future upgrades.</div><div><br></div><div>Thanks for all the help!</div><div><br></div><div>--Todd</div><div><br><br><div class="gmail_quote">On Tue, Feb 21, 2012 at 11:47 AM, Matthew  Jordan <span dir="ltr">&lt;<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
&gt; From: &quot;Todd Routhier&quot; &lt;<a href="mailto:fonemasta@gmail.com">fonemasta@gmail.com</a>&gt;<br>
<div class="im">&gt; To: &quot;Asterisk Users Mailing List - Non-Commercial Discussion&quot;<br>
</div>&gt; &lt;<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>&gt;<br>
&gt; Sent: Tuesday, February 21, 2012 11:30:34 AM<br>
&gt; Subject: Re: [asterisk-users] Define custom vm-login sound file per<br>
&gt; VM context?<br>
<div class="im"><br>
&gt; Danny,<br>
<br>
&gt; This seems to be a solution for sending people to leave a voicemail,<br>
&gt; I need a solution for VoiceMailMain() when people call in to get<br>
&gt; their messages, change greeting etc.<br>
<br>
&gt; If I use the s option with VoiceMailMain it just skips checking the<br>
&gt; passcode according to the docs.<br>
<br>
&gt; Thanks for your help though, any similar ideas for VoiceMailMain?<br>
<br>
&gt; I am playing the sound file I need before sending them to<br>
&gt; VoiceMailMain but then Comedian Mail! plays right after of course.<br>
<br>
&gt; --Todd<br>
<br>
</div>The sound files referenced by voicemail.conf are global for all<br>
mailboxes defined in the configuration file, regardless of whether or<br>
not those mailboxes are defined in separate contexts.  Hence, whatever<br>
is defined for the &#39;vm-login&#39; sound will be played for all users.<br>
<br>
For this one sound file (and this one sound file only), there is a<br>
mechanism you can use to bypass playing this sound file back.  You<br>
can tell VoiceMailMain to skip authentication of the user using the<br>
&#39;s&#39; flag, and use VMAuthenticate to authenticate the user yourself.<br>
Note that internally, VoiceMailMain uses VMAuthenticate, so you&#39;re<br>
using the exact same mechanism, just from the dialplan. If you pass the<br>
&#39;s&#39; flag to VMAuthenticate, it will not play the vm-login sound,<br>
allowing you, if you want, to play a different soundfile.<br>
<br>
In general, it would look something like this (please don&#39;t expect this<br>
to work verbatim, but it gives you an idea):<br>
<br>
exten =&gt; 1,1,NoOp()<br>
same =&gt; n,Background(&quot;Your-sound-file&quot;)<br>
same =&gt; n,VMAuthenticate(1@default,s)<br>
same =&gt; n,GotoIf($[${AUTH_MAILBOX}=1] &amp; $[${AUTH_CONTEXT}=default]?auth:failed)<br>
same =&gt; n(auth),VoiceMailMain(s)<br>
same =&gt; n,Hangup()<br>
same =&gt; n(fail),Hangup()<br>
<span class="HOEnZb"><font color="#888888"><br>
Matthew Jordan<br>
Digium, Inc. | Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>
Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> &amp; <a href="http://asterisk.org" target="_blank">http://asterisk.org</a><br>
</font></span><div class="HOEnZb"><div class="h5"><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>
</div></div></blockquote></div><br></div>