Summary:ASTERISK-13001: [patch] multiple voicemail and directory modules
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2008-11-02 11:06:10.000-0600Date Closed:2008-11-25 13:34:38.000-0600
Versions:Frequency of
Environment:Attachments:( 0) multiple_apps.diff
Description:The attached patch is intended to generate multiple instances of app_voicemail and app_directory that can be built separately.

This is done by copying e.g. app_voicemail.c to app_voicemail_imap.c and editing its MODULES comment.

This is a first working draft (I'm testing it in the Debian package. We initially had a much uglier hack).  

Obvious problem of this at run-time is that the multiple voicemail or directory modules cannot be loaded together and an explicit noload must be used.
Comments:By: Tilghman Lesher (tilghman) 2008-11-04 15:23:19.000-0600

I don't know that this really goes in a direction that is preferred.  I think the preferable solution would be to allow multiple backends to be in use at once, probably with a plugin architecture that allows administrators to choose different backends for different users (or groups of users).  This was part of the idea behind the ast_storage branch in the team/group area.

By: Jason Parker (jparker) 2008-11-19 17:33:31.000-0600

I have to agree with Corydon76.  While it would make things easier (I do something similar in my AsteriskNOW packages), it is the wrong way to go and should be done properly if it's to be committed.

I think this should be closed, until we can do it the "Right Way".

By: Terry Wilson (twilson) 2008-11-25 13:34:37.000-0600

Closing since there hasn't been anything new added here in a while and the only comments seem to be in favor of closing it.  It sounds like this is something that would be good to discuss on the asterisk-dev list or in #asterisk-dev.  tzafrir, if you feel that closing this is an error, feel free to reopen it.