[Asterisk-code-review] res pjsip: Fix configuration setting of "regcontext". (asterisk[13])

Joshua Colp asteriskteam at digium.com
Wed Apr 6 16:29:44 CDT 2016


Joshua Colp has uploaded a new change for review.

  https://gerrit.asterisk.org/2541

Change subject: res_pjsip: Fix configuration setting of "regcontext".
......................................................................

res_pjsip: Fix configuration setting of "regcontext".

Due to a merge problem two options were swapped causing the
regcontext setting to not get set.

Change-Id: Icb33edc668e7357bacbaec2861a6b5ac64edaff1
---
M res/res_pjsip/config_global.c
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/41/2541/1

diff --git a/res/res_pjsip/config_global.c b/res/res_pjsip/config_global.c
index ad03379..8348a1e 100644
--- a/res/res_pjsip/config_global.c
+++ b/res/res_pjsip/config_global.c
@@ -369,10 +369,10 @@
 		DEFAULT_VOICEMAIL_EXTENSION, OPT_STRINGFIELD_T, 0, STRFLDSET(struct global_config,
 		default_voicemail_extension));
 	ast_sorcery_object_field_register(sorcery, "global", "regcontext", DEFAULT_REGCONTEXT,
-		OPT_UINT_T, 0, FLDSET(struct global_config, contact_expiration_check_interval));
+		OPT_STRINGFIELD_T, 0, STRFLDSET(struct global_config, regcontext));
 	ast_sorcery_object_field_register(sorcery, "global", "contact_expiration_check_interval",
 		__stringify(DEFAULT_CONTACT_EXPIRATION_CHECK_INTERVAL),
-		OPT_STRINGFIELD_T, 0, STRFLDSET(struct global_config, regcontext));
+		OPT_UINT_T, 0, FLDSET(struct global_config, contact_expiration_check_interval));
 
 	if (ast_sorcery_instance_observer_add(sorcery, &observer_callbacks_global)) {
 		return -1;

-- 
To view, visit https://gerrit.asterisk.org/2541
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icb33edc668e7357bacbaec2861a6b5ac64edaff1
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Joshua Colp <jcolp at digium.com>



More information about the asterisk-code-review mailing list