[asterisk-commits] mmichelson: branch group/pimp_my_sip r380295 - /team/group/pimp_my_sip/res/re...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 28 18:41:40 CST 2013


Author: mmichelson
Date: Mon Jan 28 18:41:37 2013
New Revision: 380295

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=380295
Log:
Initializing transports somehow got lost when configuration was moved to its own file.

This re-adds it, hopefully thereby allowing incoming calls to work.


Modified:
    team/group/pimp_my_sip/res/res_sip/sip_configuration.c

Modified: team/group/pimp_my_sip/res/res_sip/sip_configuration.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip/sip_configuration.c?view=diff&rev=380295&r1=380294&r2=380295
==============================================================================
--- team/group/pimp_my_sip/res/res_sip/sip_configuration.c (original)
+++ team/group/pimp_my_sip/res/res_sip/sip_configuration.c Mon Jan 28 18:41:37 2013
@@ -192,6 +192,13 @@
 	ast_sorcery_object_field_register_custom(sip_sorcery, "endpoint", "dtmfmode", "rfc4733", dtmf_handler, NULL, 0, 0);
 	ast_sorcery_object_field_register(sip_sorcery, "endpoint", "transport", "", OPT_STRINGFIELD_T, 0, STRFLDSET(struct ast_sip_endpoint, transport));
 
+	if (ast_sip_initialize_sorcery_transport(sip_sorcery)) {
+		ast_log(LOG_ERROR, "Failed to register SIP transport support with sorcery\n");
+		ast_sorcery_unref(sip_sorcery);
+		sip_sorcery = NULL;
+		return -1;
+	}
+
 	ast_sorcery_load(sip_sorcery);
 
 	return 0;




More information about the asterisk-commits mailing list