George Joseph
a94c8562fd
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/
........
Merged revisions 408518 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@408519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
2014-02-20 20:45:30 +00:00
..
2012-07-31 20:21:43 +00:00
2014-02-11 03:18:25 +00:00
2013-12-20 20:00:50 +00:00
2014-02-20 20:45:30 +00:00
2013-08-02 15:01:37 +00:00
2014-02-01 16:26:57 +00:00
2013-10-02 17:12:49 +00:00
2014-01-14 23:44:57 +00:00
2013-08-30 13:28:50 +00:00
2012-06-25 15:55:25 +00:00
2011-07-14 20:28:54 +00:00
2010-04-02 18:57:58 +00:00
2013-12-18 20:33:37 +00:00
2010-04-02 18:57:58 +00:00
2014-01-21 14:27:21 +00:00
2014-01-21 14:27:21 +00:00
2014-01-21 14:27:21 +00:00
2014-01-21 14:27:21 +00:00
2014-01-21 14:27:21 +00:00
2013-11-27 15:48:39 +00:00
2013-11-07 21:10:31 +00:00
2014-01-21 14:27:21 +00:00
2013-10-04 16:01:48 +00:00
2013-07-27 23:11:02 +00:00
2014-01-21 14:27:21 +00:00
2013-11-27 15:48:39 +00:00
2014-01-21 14:27:21 +00:00
2014-01-12 22:24:27 +00:00
2013-07-27 23:11:02 +00:00
2012-05-18 14:43:44 +00:00
2012-10-31 14:58:44 +00:00
2013-03-28 23:59:20 +00:00
2013-01-30 14:19:29 +00:00
2013-12-18 19:28:05 +00:00
2010-04-02 18:57:58 +00:00
2013-09-30 18:55:27 +00:00
2014-02-04 02:22:28 +00:00
2013-10-03 14:58:16 +00:00
2013-04-27 12:01:29 +00:00
2013-04-27 12:01:29 +00:00
2013-05-10 20:28:18 +00:00
2014-02-10 16:49:40 +00:00
2013-04-27 12:01:29 +00:00
2013-12-08 05:59:46 +00:00
2011-07-14 20:28:54 +00:00
2013-08-18 02:55:54 +00:00
2012-09-21 17:14:59 +00:00
2010-07-21 19:11:32 +00:00
2012-10-14 21:44:27 +00:00
2013-12-09 03:21:56 +00:00
2014-01-16 19:13:05 +00:00
2010-05-21 15:15:58 +00:00
2012-07-13 16:49:40 +00:00
2012-07-13 18:41:07 +00:00
2013-03-27 14:28:36 +00:00
2013-08-23 15:42:27 +00:00
2012-07-13 16:49:40 +00:00
2012-04-17 18:57:40 +00:00
2013-09-13 14:19:19 +00:00
2013-07-03 16:32:00 +00:00
2013-12-19 16:52:43 +00:00
2011-12-05 14:47:11 +00:00
2012-10-14 21:44:27 +00:00
2013-06-17 03:00:38 +00:00
2010-04-02 18:57:58 +00:00
2014-01-17 14:17:04 +00:00
2013-07-18 16:03:12 +00:00
2014-01-06 17:49:05 +00:00
2014-01-06 17:45:25 +00:00
2014-01-06 17:45:25 +00:00
2012-10-14 21:44:27 +00:00
2010-04-02 18:57:58 +00:00
2013-10-22 16:28:05 +00:00
2012-10-14 21:44:27 +00:00
2014-01-07 19:56:18 +00:00
2014-01-03 21:13:30 +00:00
2014-01-15 13:16:10 +00:00
2014-01-15 13:16:10 +00:00
2013-09-03 18:09:02 +00:00
2013-07-30 18:14:50 +00:00
2014-02-06 17:55:45 +00:00
2013-10-25 17:41:38 +00:00
2014-01-31 23:13:39 +00:00
2013-07-30 18:14:50 +00:00
2014-01-15 13:16:10 +00:00
2013-09-13 14:22:07 +00:00
2014-02-06 17:55:45 +00:00
2014-01-15 13:16:10 +00:00
2014-01-31 22:27:07 +00:00
2014-02-13 18:52:08 +00:00
2014-01-31 15:08:49 +00:00
2014-01-15 13:16:10 +00:00
2013-07-30 18:14:50 +00:00
2013-12-09 16:10:05 +00:00
2014-02-06 17:55:45 +00:00
2014-01-15 13:16:10 +00:00
2014-01-31 22:27:07 +00:00
2014-01-31 22:27:07 +00:00
2014-02-13 18:52:08 +00:00
2014-01-31 22:27:07 +00:00
2014-01-15 13:16:10 +00:00
2013-12-03 17:35:54 +00:00
2014-02-17 15:36:45 +00:00
2013-07-30 18:14:50 +00:00
2014-01-17 21:33:26 +00:00
2014-01-26 02:11:04 +00:00
2013-07-30 18:14:50 +00:00
2014-01-15 13:16:10 +00:00
2013-12-01 19:58:08 +00:00
2014-01-31 22:27:07 +00:00
2014-02-20 20:45:30 +00:00
2013-11-23 17:26:57 +00:00
2013-07-30 13:46:16 +00:00
2010-04-02 18:57:58 +00:00
2011-11-01 19:53:26 +00:00
2014-01-30 20:36:21 +00:00
2013-10-03 18:32:59 +00:00
2013-09-30 18:55:27 +00:00
2012-10-14 21:44:27 +00:00
2010-04-02 18:57:58 +00:00
2012-10-14 21:44:27 +00:00
2014-02-19 18:29:12 +00:00
2013-12-17 18:35:39 +00:00
2013-03-20 14:52:23 +00:00
2013-04-27 12:01:29 +00:00
2012-10-01 12:29:04 +00:00
2013-09-16 18:00:32 +00:00
2013-05-15 12:42:04 +00:00
2010-06-08 05:29:08 +00:00
2013-12-13 16:38:57 +00:00
2013-05-20 14:21:39 +00:00
2014-01-28 19:19:08 +00:00
2013-11-23 17:48:28 +00:00
2014-01-14 23:44:57 +00:00
2014-01-14 23:44:57 +00:00
2014-01-22 14:01:07 +00:00
2013-05-23 20:11:35 +00:00
2013-12-13 16:38:57 +00:00
2013-07-03 17:58:45 +00:00
2013-12-18 19:28:05 +00:00
2013-11-23 12:40:46 +00:00
2013-09-30 18:55:27 +00:00
2013-05-08 13:39:08 +00:00
2014-02-01 16:26:57 +00:00
2013-04-15 16:43:47 +00:00
2013-07-27 23:11:02 +00:00
2013-04-26 20:05:15 +00:00
2013-07-08 14:42:57 +00:00
2014-02-07 20:01:45 +00:00
2014-02-07 20:01:45 +00:00
2014-02-07 20:01:45 +00:00
2014-02-07 20:01:45 +00:00
2013-12-19 16:52:43 +00:00
2012-07-07 17:06:51 +00:00