[asterisk-commits] gtjoseph: branch 13 r432033 - /branches/13/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Feb 20 11:46:20 CST 2015


Author: gtjoseph
Date: Fri Feb 20 11:46:17 2015
New Revision: 432033

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=432033
Log:
ASTERISK-24811: Add ast_sorcery_apply_config() to res_pjsip_publish_asterisk.

Matt Hoskins reported that res_pjsip_publish_asterisk wouldn't pull config from 
realtime.  Turns out it was just missing a call ast_sorcery_apply_config().

res_pjsip_acl was missing it as well, so I added it.  The other pjsip modules 
looked OK.

ASTERISK-24811 #close
Reported-by: Matt Hoskins
Tested-by: George Joseph
Tested-by: Matt Hoskins
patches:
	res_pjsip_publish_asterisk.c.patch submitted by Matt Hoskins (licensed)

Review: https://reviewboard.asterisk.org/r/4433/



Modified:
    branches/13/res/res_pjsip_acl.c
    branches/13/res/res_pjsip_publish_asterisk.c

Modified: branches/13/res/res_pjsip_acl.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_acl.c?view=diff&rev=432033&r1=432032&r2=432033
==============================================================================
--- branches/13/res/res_pjsip_acl.c (original)
+++ branches/13/res/res_pjsip_acl.c Fri Feb 20 11:46:17 2015
@@ -269,6 +269,7 @@
 {
 	CHECK_PJSIP_MODULE_LOADED();
 
+	ast_sorcery_apply_config(ast_sip_get_sorcery(), SIP_SORCERY_ACL_TYPE);
 	ast_sorcery_apply_default(ast_sip_get_sorcery(), SIP_SORCERY_ACL_TYPE,
 				  "config", "pjsip.conf,criteria=type=acl");
 

Modified: branches/13/res/res_pjsip_publish_asterisk.c
URL: http://svnview.digium.com/svn/asterisk/branches/13/res/res_pjsip_publish_asterisk.c?view=diff&rev=432033&r1=432032&r2=432033
==============================================================================
--- branches/13/res/res_pjsip_publish_asterisk.c (original)
+++ branches/13/res/res_pjsip_publish_asterisk.c Fri Feb 20 11:46:17 2015
@@ -858,6 +858,7 @@
 {
 	CHECK_PJSIP_PUBSUB_MODULE_LOADED();
 
+	ast_sorcery_apply_config(ast_sip_get_sorcery(), "asterisk-publication");
 	ast_sorcery_apply_default(ast_sip_get_sorcery(), "asterisk-publication", "config", "pjsip.conf,criteria=type=asterisk-publication");
 
 	if (ast_sorcery_object_register(ast_sip_get_sorcery(), "asterisk-publication", asterisk_publication_config_alloc, NULL, NULL)) {




More information about the asterisk-commits mailing list