]> git.ipfire.org Git - thirdparty/asterisk.git/commit
main/sorcery: Don't fail object set creation from JSON if field fails 48/848/3
authorMatt Jordan <mjordan@digium.com>
Wed, 8 Jul 2015 21:28:13 +0000 (16:28 -0500)
committerMatt Jordan <mjordan@digium.com>
Sun, 12 Jul 2015 23:08:58 +0000 (18:08 -0500)
commitbb76b88bafebd69bba31d85acd24fa5d46f3d59a
tree55f121546b852e0601f2ac9f8afb830127948d5e
parent5c491a629586ab7036107ae79935a39bcf793a0a
main/sorcery: Don't fail object set creation from JSON if field fails

Some individual fields may fail their conversion due to their default
values being invalid for their custom handlers. In particular,
configuration values that depend on others being enabled (and thus have
an empty default value) are notorious for tripping this routine up. An
example of this are any of the DTLS options for endpoints. Any of the
DTLS options will fail to be applied (as DTLS is not enabled), causing
the entire object set to be aborted.

This patch makes it so that we log a debug message when skipping a
field, and rumble on anyway.

ASTERISK-25238

Change-Id: I0bea13de79f66bf9f9ae6ece0e94a2dc1c026a76
main/sorcery.c