Files
asterisk/main
George Joseph 31b4edae7f sorcery: Create sorcery instance registry.
In order to retrieve an arbitrary sorcery instance from a dialplan function
(or any place else) there needs to be a registry of sorcery instances.

ast_sorcery_init now creates a hashtab as a registry.

ast_sorcery_open now checks the hashtab for an existing sorcery instance
matching the caller's module name.  If it finds one, it bumps the 
refcount and returns it.  If not, it creates a new sorcery instance,
adds it to the hashtab, then returns it.

ast_sorcery_retrieve_by_module_name is a new function that does a hashtab 
lookup by module name.  It can be called by the future dialplan function.

res_pjsip/config_system needed a small change to share the main res_pjsip 
sorcery instance.

tests/test_sorcery was updated to include a test for the registry.

(closes issue ASTERISK-22537)
Review: http://reviewboard.asterisk.org/r/3184/


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@408518 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-02-20 20:42:36 +00:00
..
2013-11-23 17:14:22 +00:00
2012-06-15 16:20:16 +00:00
2013-08-01 17:07:52 +00:00
2012-09-21 17:14:59 +00:00
2013-08-20 15:36:10 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-07-04 13:06:15 +00:00
2013-06-29 00:18:57 +00:00
2013-12-19 16:31:57 +00:00
2013-07-14 02:05:04 +00:00
2012-10-18 14:17:40 +00:00
2013-09-10 18:03:45 +00:00
2014-01-17 21:32:18 +00:00
2014-01-17 21:32:18 +00:00
2012-06-15 16:20:16 +00:00
2013-08-16 16:26:11 +00:00
2013-09-10 18:03:45 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2013-11-22 20:01:26 +00:00
2013-08-23 21:49:47 +00:00
2013-08-30 19:20:47 +00:00
2013-10-04 21:40:33 +00:00
2013-10-04 21:40:33 +00:00
2012-06-15 16:20:16 +00:00
2012-06-15 16:20:16 +00:00
2013-12-20 21:16:47 +00:00
2012-06-15 16:20:16 +00:00
2012-09-21 17:14:59 +00:00
2013-12-20 19:06:12 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2012-09-21 17:14:59 +00:00
2013-02-14 18:47:56 +00:00
2012-12-11 22:25:21 +00:00
2012-06-15 16:20:16 +00:00
2013-11-23 17:14:22 +00:00