I just tested fromstring and emailbody with voicemail2 and a farily new code and it's working. I don't know what you're doing wrong ... but something for sure.
regards Martin On Mon, 13 Oct 2003, John Todd wrote: > >I would recommend then doing "grep fromstring > >/usr/src/asterisk/apps/app_voicemail2.c" .... > > > >Martin > > > >On Fri, 19 Sep 2003, Ben Bloomberg wrote: > > > >> I'm having tons of trouble getting the fromstring to work in > >> voicemail.conf. I've tried both voicemail and voicemail2 but the emails > >> still seem to be coming from asterisk pbx. Has anyone had any luck with > > > this? > [snip] > > Martin - > I examined the source, but I am still un-enlightened. :-) I > cannot get fromstring or emailbody working reliably. Even with the > minimalist settings below, the header or body did not change (other > than "serveremail" which seems to be set appropriately.) > Interestingly and perhaps as an additional problem, the timezones > also don't seem to work correctly in the voicemail message, either - > the time in the email message is Eastern time (the TZ to which that > server is set.) My CVS is Asterisk CVS-10/13/03-18:38:10. > > What I am doing incorrectly? > > JT > > > > > [general] > format=wav > [EMAIL PROTECTED] > attach=yes > fromstring=Foo > emailbody=New vm now > > [zonemessages] > eastern=US/NewYork|'vm-received' Q 'digits/at' IMp > central=US/Central|'vm-received' Q 'digits/at' IMp > mountain=US/Mountain|'vm-received' Q 'digits/at' IMp > pacific=US/Pacific|'vm-received' Q 'digits/at' IMp > > [default] > 2413669780 => 9999,john todd,[EMAIL PROTECTED],,|tz=pacific > > > A message left in that mailbox results in: > > >Date: Mon, 13 Oct 2003 18:53:49 -0400 > >From: Asterisk PBX <[EMAIL PROTECTED]> > >To: john todd <[EMAIL PROTECTED]> > >Subject: [PBX]: New message 2 in mailbox 2413669780 > > > >Dear john todd: > > > > Just wanted to let you know you were just left a 0:01 long > >message (number 2) > >in mailbox 2413669780 from 2155821314, on Monday, October 13, 2003 > >at 06:53:49 PM so you might > >want to check it when you get a chance. Thanks! > > > > --Asterisk > > > >Content-Type: audio/x-wav; name="msg0002.wav" > >Content-Description: Voicemail sound attachment. > >Content-Disposition: attachment; filename="msg0002.wav" > > > > > _______________________________________________ > Asterisk-Users mailing list > [EMAIL PROTECTED] > http://lists.digium.com/mailman/listinfo/asterisk-users > _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users