Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421037 - net-misc/asterisk - need for alternate VM storage backend
Summary: net-misc/asterisk - need for alternate VM storage backend
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 21:33 UTC by Jaco Kroon
Modified: 2012-06-22 10:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
vm_storage_use_expand.diff (vm_storage_use_expand.diff,1.71 KB, patch)
2012-06-13 23:37 UTC, Jaco Kroon
Details | Diff
vm_storage_normal_use.diff (vm_storage_normal_use.diff,1.60 KB, patch)
2012-06-13 23:40 UTC, Jaco Kroon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco Kroon 2012-06-13 21:33:52 UTC
I have a need to store voicemail in ODBC (MySQL to be specific but that's actually irrelevant).

This decision is (and IMHO a crappy design decision) made at compile time of which storage backend to use (although it does on a VERY rudementary check of the code look like a fallback to filesystem might be happening).

There are three storage engines available:

FILE_STORAGE - the default and trusted one
ODBC_STORAGE - the one I'm after
IMAP_STORAGE - useful to integrate with mail setups I guess (can link with IMAP mail storage I guess ...)

The flag that needs to be modified in menuselect.makeopts is this one:

MENUSELECT_OPTS_app_voicemail=FILE_STORAGE

A very "clean" solution would be one like the APACHE_MPMS where you can (and must) select exactly one.  We can then also need to force USE=odbc if the ODBC vm storage is selected.

I've manually set the MENUSELECT_OPTS_app_voicemail=ODBC_STORAGE after manual "ebuild $(equery which asterisk) clean configure", and this worked for me.  Some way of doing this via ebuild would be particularly useful.

Reproducible: Always
Comment 1 Jaco Kroon 2012-06-13 23:37:22 UTC
Created attachment 315235 [details, diff]
vm_storage_use_expand.diff

First variant - this requires VOICEMAIL_STORAGE to be added to the USE_EXPAND list - seemingly unlikely to happen.

Patch applies cleanly to 1.8.12.1 version, should apply to 10.X too.
Comment 2 Jaco Kroon 2012-06-13 23:40:57 UTC
Created attachment 315237 [details, diff]
vm_storage_normal_use.diff

Tony,

If you can get the USE_EXPAND through I'd recommend that, alternatively this patch will also work, but probably not quite a clean in terms of clarity.
Comment 3 Jaco Kroon 2012-06-13 23:49:59 UTC
Tony,

As promised, bug filed against asterisk upstream:

https://issues.asterisk.org/jira/browse/ASTERISK-19994
Comment 4 Jaco Kroon 2012-06-20 14:28:12 UTC
Tony, any progress here?

I've got a pending feature that depends on this that I'd like to start pushing out, and my clustered asterisk implementation depends heavily on this.
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2012-06-22 10:50:48 UTC
+*asterisk-1.8.13.0-r1 (22 Jun 2012)
+
+  22 Jun 2012; Tony Vroon <chainsaw@gentoo.org> +asterisk-1.8.13.0-r1.ebuild:
+  Voicemail storage backends are now configurable. Work by Jaco Kroon, closes
+  bug #421037.