[asterisk-commits] file: branch group/pimp_my_sip r385110 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Apr 9 10:24:06 CDT 2013


Author: file
Date: Tue Apr  9 10:24:03 2013
New Revision: 385110

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385110
Log:
Be more tolerate within res_sip_session of res_sip failing to load properly, plus I want Bamboo to run for kicks.

Modified:
    team/group/pimp_my_sip/res/res_sip_session.c

Modified: team/group/pimp_my_sip/res/res_sip_session.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip_session.c?view=diff&rev=385110&r1=385109&r2=385110
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Tue Apr  9 10:24:03 2013
@@ -1739,6 +1739,9 @@
 static int load_module(void)
 {
 	pjsip_endpoint *endpt;
+	if (!ast_sip_get_sorcery() || !ast_sip_get_pjsip_endpoint()) {
+		return AST_MODULE_LOAD_DECLINE;
+	}
 	if (!(nat_hook = ast_sorcery_alloc(ast_sip_get_sorcery(), "nat_hook", NULL))) {
 		return AST_MODULE_LOAD_DECLINE;
 	}




More information about the asterisk-commits mailing list