[asterisk-commits] qwell: branch qwell/fun_with_transports r388693 - /team/qwell/fun_with_transp...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 14 11:50:39 CDT 2013


Author: qwell
Date: Tue May 14 11:50:36 2013
New Revision: 388693

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=388693
Log:
one more return check

Modified:
    team/qwell/fun_with_transports/res/res_sip_transport_websocket.c

Modified: team/qwell/fun_with_transports/res/res_sip_transport_websocket.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/fun_with_transports/res/res_sip_transport_websocket.c?view=diff&rev=388693&r1=388692&r2=388693
==============================================================================
--- team/qwell/fun_with_transports/res/res_sip_transport_websocket.c (original)
+++ team/qwell/fun_with_transports/res/res_sip_transport_websocket.c Tue May 14 11:50:36 2013
@@ -378,7 +378,10 @@
 
 	ast_sip_session_register_supplement(&websocket_supplement);
 
-	ast_websocket_add_protocol("sip", websocket_cb);
+	if (ast_websocket_add_protocol("sip", websocket_cb)) {
+		ast_sip_unregister_service(&websocket_module);
+		return AST_MODULE_LOAD_DECLINE;
+	}
 
 	return AST_MODULE_LOAD_SUCCESS;
 }




More information about the asterisk-commits mailing list