Thanks Matt!<div><br><div>It's a multi-tenant system and basically I just wanted to customize the look of the From info in the emails.</div><div><br></div><div>For everyone's reference, I think I have at least found a direction to go on this.</div>
<div><br></div><div>I am thinking I will redirect the job of mailing the file to a custom script at some point which should then allow me to do pretty much whatever I want.</div><div><br></div><div>After searching for a way to have Asterisk send the attachments as mp3 files, I came across lots of interesting stuff that will allow me to do just about anything with the emails that are sent out.</div>
<div><br></div><div>--Todd</div><div><br><br><div class="gmail_quote">On Fri, Dec 16, 2011 at 1:02 PM, 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">
<div class="im"><br>
<br>
----- Original Message -----<br>
> From: "Matthew Jordan" <<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>><br>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
> Sent: Friday, December 16, 2011 12:57:43 PM<br>
> Subject: Re: [asterisk-users] fromstring in voicemail.conf<br>
><br>
><br>
> ----- Original Message -----<br>
><br>
> > From: "Todd Routhier" <<a href="mailto:fonemasta@gmail.com">fonemasta@gmail.com</a>><br>
> > To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
> > Sent: Friday, December 16, 2011 11:32:31 AM<br>
> > Subject: [asterisk-users] fromstring in voicemail.conf<br>
><br>
> > I have attempted to set the fromstring option on a per context<br>
> > basis<br>
> > in voicemail.conf but it doesn't seem to work. I would like to<br>
> > somehow either set this based on context, number dialed into or<br>
> > some<br>
> > other way.<br>
><br>
> When you say per context basis, are you talking about multiple<br>
> contexts for voicemail users? Or multiple voicemail settings<br>
> contexts? app_voicemail only reads global settings from a single<br>
> context - [general]. Hence, global settings are only defined in<br>
> that context. I'm assuming by "fromstring" you mean the setting<br>
> "email".<br>
<br>
</div>Scratch that. You did mean "fromstring" :-)<br>
<br>
That setting is not currently overrideable on a mailbox by mailbox basis. If you'd like that functionality, a patch would have to be written against Asterisk trunk.<br>
<br>
Sorry for the confusion.<br>
<div class="HOEnZb"><div class="h5"><br>
> > Would it be possible to set this option in the general section to a<br>
> > channel variable, then set the variable as the call is on the way<br>
> > in?<br>
><br>
> What would that buy you? app_voicemail does not expect to read its<br>
> application specific settings from a channel variable.<br>
><br>
> > Any other way?<br>
><br>
> Yes.<br>
><br>
> > OR am I just stuck with one single fromstring for all voice mails<br>
> > forever?<br>
><br>
> No. Each mailbox you define in voicemail.conf (or alternatively,<br>
> users.conf) can override settings that were set in the [global]<br>
> settings context. This includes email, emailbody, and emailsubject<br>
> (at least in versions 1.8 and greater).<br>
><br>
> > Also, does anyone know where I can find a list of options that are<br>
> > definable at the context level in voicemail.conf? I have searched<br>
> > for this quite a bit but no luck so far. I now the obvious ones<br>
> > like<br>
> > time zone etc..<br>
><br>
> <a href="http://ofps.oreilly.com/titles/9780596517342/asterisk-Voicemail.html" target="_blank">http://ofps.oreilly.com/titles/9780596517342/asterisk-Voicemail.html</a><br>
><br>
> > Hmm, I am wondering now if I can set it on email mailbox. Instead<br>
> > of<br>
> > one time in the context. Trying that now.<br>
><br>
> > Thanks in advance!<br>
<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></div>