Benoit Panizzon
2010-Nov-09  10:30 UTC
[asterisk-users] Asterisk Voicemail Realtime and 'VirtualBoxing'
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=voicemail at 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=combox at 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
______________________________________________________
Seemingly Similar Threads
- SV: Re: SV: Re: SV: Re: Fromstring when sending e-mailonrecievedvoicemail
- Asterisk-MySQL: Not loading voicemail config from MySQL
- Configuring X Ten to make call using FX0
- Not receiving voicemail message in mailbox
- Asterisk Inbound calls, multiple SIP accounts, calledID
