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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 14 14:58:29 CDT 2013


Author: file
Date: Thu Mar 14 14:58:25 2013
New Revision: 383104

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=383104
Log:
Move initialization of the transaction and UA layers to res_sip as they are required for all SIP operation.

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

Modified: team/group/pimp_my_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip.c?view=diff&rev=383104&r1=383103&r2=383104
==============================================================================
--- team/group/pimp_my_sip/res/res_sip.c (original)
+++ team/group/pimp_my_sip/res/res_sip.c Thu Mar 14 14:58:25 2013
@@ -534,6 +534,9 @@
 		goto error;
 	}
 
+	pjsip_tsx_layer_init_module(ast_pjsip_endpoint);
+	pjsip_ua_init_module(ast_pjsip_endpoint, NULL);
+
 	monitor_continue = 1;
 	status = pj_thread_create(memory_pool, "SIP", (pj_thread_proc *) &monitor_thread_exec,
 			NULL, PJ_THREAD_DEFAULT_STACK_SIZE * 2, 0, &monitor_thread);

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=383104&r1=383103&r2=383104
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Thu Mar 14 14:58:25 2013
@@ -1150,8 +1150,6 @@
 		return AST_MODULE_LOAD_DECLINE;
 	}
 	endpt = ast_sip_get_pjsip_endpoint();
-	pjsip_tsx_layer_init_module(endpt);
-	pjsip_ua_init_module(endpt, NULL);
 	pjsip_inv_usage_init(endpt, &inv_callback);
 	pjsip_100rel_init_module(endpt);
 	pjsip_timer_init_module(endpt);




More information about the asterisk-commits mailing list