]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_sorcery_astdb: Filter fields to only the registered ones. 80/2880/1
authorJoshua Colp <jcolp@digium.com>
Thu, 19 May 2016 16:41:45 +0000 (13:41 -0300)
committerJoshua Colp <jcolp@digium.com>
Thu, 19 May 2016 22:47:54 +0000 (17:47 -0500)
commit40cb0320099ea750c63d35729eb3c76dc5c439cd
treea1bfdfca8bf95a0a30f52aa8e40c7bd1c3be4ed6
parentff3cbc0046922c24546782afa3f5a44f1d63db3d
res_sorcery_astdb: Filter fields to only the registered ones.

This change introduces the same filtering that is done in res_sorcery_realtime
to the res_sorcery_astdb module. This allows persisted sorcery objects
that may contain unknown fields to still be read in from the AstDB
and used. This is particularly useful when switching between different
versions of Asterisk that may have introduced additional fields.

ASTERISK-26014 #close

Change-Id: Ib655130485a3ccfd635b7ed5546010ca14690fb2
res/res_sorcery_astdb.c