[asterisk-dev] Any plans for func_config to use sorcery?
George Joseph
george.joseph at fairview5.com
Tue Sep 17 14:38:01 CDT 2013
On Tue, Sep 17, 2013 at 10:58 AM, Joshua Colp <jcolp at digium.com> wrote:
> 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.
>
When you say "user" what exactly do you mean? One who calls
ast_sip_get_sorcery() or something else?
More information about the asterisk-dev
mailing list