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"><<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> From: "Todd Routhier" <<a href="mailto:fonemasta@gmail.com">fonemasta@gmail.com</a>><br>
<div class="im">> To: "Asterisk Users Mailing List - Non-Commercial Discussion"<br>
</div>> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
> Sent: Tuesday, February 21, 2012 11:30:34 AM<br>
> Subject: Re: [asterisk-users] Define custom vm-login sound file per<br>
> VM context?<br>
<div class="im"><br>
> Danny,<br>
<br>
> This seems to be a solution for sending people to leave a voicemail,<br>
> I need a solution for VoiceMailMain() when people call in to get<br>
> their messages, change greeting etc.<br>
<br>
> If I use the s option with VoiceMailMain it just skips checking the<br>
> passcode according to the docs.<br>
<br>
> Thanks for your help though, any similar ideas for VoiceMailMain?<br>
<br>
> I am playing the sound file I need before sending them to<br>
> VoiceMailMain but then Comedian Mail! plays right after of course.<br>
<br>
> --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 'vm-login' 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>
's' flag, and use VMAuthenticate to authenticate the user yourself.<br>
Note that internally, VoiceMailMain uses VMAuthenticate, so you're<br>
using the exact same mechanism, just from the dialplan. If you pass the<br>
's' 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't expect this<br>
to work verbatim, but it gives you an idea):<br>
<br>
exten => 1,1,NoOp()<br>
same => n,Background("Your-sound-file")<br>
same => n,VMAuthenticate(1@default,s)<br>
same => n,GotoIf($[${AUTH_MAILBOX}=1] & $[${AUTH_CONTEXT}=default]?auth:failed)<br>
same => n(auth),VoiceMailMain(s)<br>
same => n,Hangup()<br>
same => 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> & <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>