]> git.ipfire.org Git - thirdparty/asterisk.git/commit
realtime: Fix ast_load_realtime_multientry handling 48/5048/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 18:45:03 +0000 (13:45 -0500)
commitd5522de597cc6fbbc9747fa6798144cd5d00cdb1
treee846cdeb4630b435f96f4ab71b0643e8fbb1f31c
parentf29ea24d9f1d5771f7a5fe2f0bae51c4bf9a657a
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