]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/configuration: Fix a variety of default value problems 50/850/3
authorMatt Jordan <mjordan@digium.com>
Wed, 8 Jul 2015 21:35:36 +0000 (16:35 -0500)
committerMatt Jordan <mjordan@digium.com>
Wed, 15 Jul 2015 00:15:14 +0000 (19:15 -0500)
commitcd2213f1ae7ef14b9a7d50984a5dd4b431a8e195
tree8d13d77e42e899cfa6d9a8aeb39b06ff8b79c5f3
parent2e4bdbd78adb4df16af1132df8e58f464e039cd4
res_pjsip/configuration: Fix a variety of default value problems

This patch fixes some bad default value handling in the following
settings:

* The 'message_context' and 'accountcode' settings are not mandatory. As
  such, we can allow their stringfield values to be empty.
* The 'media_encryption' setting applies a default value of 'none' to
  the setting, which it then can't parse or understand. Since the value
  is documented to be 'no', this will now apply that as the default
  value.

Change-Id: Ib9be7f97a7a5b9bc7aee868edf5acf38774cff83
res/res_pjsip/pjsip_configuration.c