[Asterisk-Users] VoiceMail fromstring?

Martin Pycko martinp at digium.com
Fri Sep 19 21:25:38 MST 2003


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?
> =================
> Here's my voicemail.conf:
> ;
> ; Voicemail Configuration
> ;
> [general]
> ; Default formats for writing Voicemail
> ;format=g723sf|wav49|wav
> format=wav49|gsm|wav
> ; Who the e-mail notification should appear to come from
> serveremail=vmoperator
> ;serveremail=asterisk at linux-support.net
> ; Should the email contain the voicemail as an attachment
> attach=yes
> ; Maximum length of a voicemail message
> ;maxmessage=180
> ; Maximum length of greetings
> ;maxgreet=60
> ; How many miliseconds to skip forward/back when rew/ff in message
> playback
> skipms=3000
> ; How many seconds of silence before we end the recording
> maxsilence=10
> ; Silence threshold (what we consider silence, the lower, the more
> sensitive)
> silencethreshold=128
> ; Max number of failed login attempts
> maxlogins=3
>
> ; Skip the "[PBX]:" string from the message title
> ;pbxskip=yes
> ; Change the From: string
> fromstring=VoiceMail System ; Whats wrong??? (this comment isn't here
> in the real file)
> ; Change the email body, variables: VM_NAME, VM_DUR, VM_MSGNUM,
> VM_MAILBOX, VM_CALLERID, VM_DATE
> ;emailbody=Dear ${VM_NAME}:\n\n\tjust wanted to let you know you were
> just left a ${VM_DUR} long message (number ${VM_MSGNUM})\nin mailbox
> ${VM_MAILBOX} from ${VM_CALLERID}, on ${VM_DATE} so you might\nwant to
> check it when you get a chance.  Thanks!\n\n\t\t\t\t--Asterisk\n
>
>
> ;
> ; Users may be located in different timezones, or may have different
> ; message announcements for their introductory message when they enter
> ; the voicemail system. Set the message and the timezone each user
> ; hears here. Set the user into one of these zones with the tz=
> attribute
> ; in the options field of the mailbox. Of course, language substitution
> ; still applies here so you may have several directory trees that have
> ; alternate language choices.
> ;
> ; Look in /usr/share/zoneinfo/ for names of timezones.
> ; Look at the manual page for strftime for a quick tutorial on how the
> ; variable substitution is done on the values below.
> ;
> ; Supported values:
> ; 'filename'    filename of a soundfile (single ticks around the
> filename required)
> ; ${VAR}        variable substitution
> ; A or a        Day of week (Saturday, Sunday, ...)
> ; B or b or h   Month name (January, February, ...)
> ; d or e        numeric day of month (first, second, ..., thirty-first)
> ; Y             Year
> ; I or l        Hour, 12 hour clock
> ; H             Hour, 24 hour clock (single digit hours preceded by
> "oh")
> ; k             Hour, 24 hour clock (single digit hours NOT preceded by
> "oh")
> ; M             Minute
> ; P or p        AM or PM
> ; Q             "today", "yesterday" or ABdY (*note: not standard
> strftime value)
> ; q             "" (for today), "yesterday", weekday, or ABdY (*note:
> not standard strftime value)
> ; R             24 hour time, including minute
> ;
> ;
> [zonemessages]
> eastern=America/NewYork|'vm-received' Q 'digits/at' IMp
> central=America/Chicago|'vm-received' Q 'digits/at' IMp
> central24=America/Chicago|'vm-received' q 'digits/at' H
> 'digits/hundred' M 'digits/hours'
>
> ;
> ; Each mailbox is listed in the form
> <mailbox>=<password>,<name>,<email>,<pager_email>,<options>
> ; if the e-mail is specified, a message will be sent when a message is
> ; received, to the given mailbox. If pager is specified, a message will
> be sent there as well.
> ;
> [default]
> 100 => XXXX,Ben Bloomberg,ben at benbloomberg.com,tz=eastern
> 101 => XXXX,Kiki Bloomberg,bphilips at ecs.umass.edu,tz=eastern
> 201 => XXXX,Brenda Philips,bphilips at ecs.umass.edu,tz=eastern
> 202 => XXXX,David Bloomberg,dbloomberg at northamptonlaw.com,tz=eastern
> 300 => XXXX,Rosalind Philips
> 301 => XXXX,Lisa Philips
> 302 => XXXX,Glenda Philips
> 303 => XXXX,Owen Hooks-Davis,owen at hdnl.benbloomberg.com
> ====================
> Thanks
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list