]> git.ipfire.org Git - thirdparty/asterisk.git/commit
realtime: Fix ast_load_realtime_multientry handling 50/5050/1
authorSean Bright <sean.bright@gmail.com>
Tue, 21 Feb 2017 16:47:28 +0000 (11:47 -0500)
committerSean Bright <sean.bright@gmail.com>
Tue, 21 Feb 2017 19:06:20 +0000 (13:06 -0600)
commitbca1462d9078653a1041af2279f1648d449c7700
treeef76fa6d073d261cd6cdce7556334230a02ecb71
parentdc9bc25de994a487de817ad634548f87b8b03f0a
realtime: Fix ast_load_realtime_multientry handling

ast_load_realtime_multientry() returns an ast_config structure whose
ast_categorys are keyed with the empty strings. Several modules were
giving semantic meaning to the category names causing problems at
runtime.

* app_directory: Treated the category name as the mailbox name, and
  would fail to direct calls to the appropriate extension after an
  entry was chosen.

* app_queue: Queues, queue members, and queue rules were all affected
  and needed to be updated.

* pbx_realtime: Pattern matching would never succeed because the
  extension entered by the user was always compared to the empty
  string.

Change-Id: Ie7e44986344b0b76ea8f6ddb5879f5040c6ca8a7
apps/app_directory.c
apps/app_queue.c
pbx/pbx_realtime.c