Hello I'm about to set up a voicemail system for multiple wholesale customers.
So I use a realtime mysql config for the mailboxes. All single mailboxes have their information about the number, emailaddress, password in the database. This works fine. Now the notification emails of course should be customized per wholesale customer. I added a 'mandate' table to the database and get this field by an AGI script before calling VoiceMail to get the correct language and context name for this particular mailbox. Let's call them company1 and company2 Then I do: exten => s,n,AGI(getmandate.agi) exten => s,n,Set(CHANNEL(language)=${MANDATELANG}) exten => s,n,VoiceMail(0${CALLERID(rdnis):2...@${mandate},u) in voicemail.conf I have: [company1] serveremail=voicem...@company1.example.com tz=european emailsubject=[Customer 1 VM]: Neue Nachricht nummer ${VM_MSGNUM} von ${VM_CIDNUM} in mailbox ${VM_MAILBOX}. emailbody=some more blabla [company2] serveremail=com...@company2.example.com tz=european emailsubject=[COMBOX]: New Message from ${VM_CIDNUM} in mailbox ${VM_MAILBOX}. emailbody=some other blabla Unfortunately the email settings per voicemail context are ignored, those from the [general] section are being used. As far as I found out, I could also put emailsubject and emailbody in the database, but this would massively increase the size of the database and as this is not information which will often change this does not need to be realtime. Is there a way to have the email settings per voicemail context together with a realtime vm config? Mit freundlichen GrĂ¼ssen Benoit Panizzon -- I m p r o W a r e A G - ______________________________________________________ Zurlindenstrasse 29 Tel +41 61 826 93 07 CH-4133 Pratteln Fax +41 61 826 93 02 Schweiz Web http://www.imp.ch ______________________________________________________ -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users