[asterisk-dev] Any plans for func_config to use sorcery?

Joshua Colp jcolp at digium.com
Tue Sep 17 11:58:23 CDT 2013


George Joseph wrote:
> Continuing this discussion...
>
> How about I create a func_sorcery module that exposes SORCERY_CONFIG.
> That function would take id, type and variable as arguments, find the
> object, create an objectset and search the objectset for the variable
> specified.  The module would also cache the objectsets so they don't
> have to be generated for each call and would register as a sorcery
> observer to keep the cache current (or flush it).
>
> Make sense?

SORCERY_OBJECT would make more sense - sorcery isn't written to strictly 
be for configuration. The problem you'll run into though is sorcery 
instances are not shared within the system. Each user has a specific 
isolated instance.

-- 
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org



More information about the asterisk-dev mailing list