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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 18 10:44:56 CST 2013


Author: file
Date: Fri Jan 18 10:44:53 2013
New Revision: 379448

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379448
Log:
Initialize the user agent and don't enable any options.

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=379448&r1=379447&r2=379448
==============================================================================
--- team/group/pimp_my_sip/res/res_sip_session.c (original)
+++ team/group/pimp_my_sip/res/res_sip_session.c Fri Jan 18 10:44:53 2013
@@ -505,8 +505,9 @@
 	pjsip_tx_data *tdata = NULL;
 	pjsip_dialog *dlg = NULL;
 	pjsip_inv_session *inv_session = NULL;
-
-	if (pjsip_inv_verify_request(rdata, NULL, NULL, NULL, ast_sip_get_pjsip_endpoint(), &tdata) != PJ_SUCCESS) {
+	unsigned int options = 0;
+
+	if (pjsip_inv_verify_request(rdata, &options, NULL, NULL, ast_sip_get_pjsip_endpoint(), &tdata) != PJ_SUCCESS) {
 		if (tdata) {
 			pjsip_endpt_send_response2(ast_sip_get_pjsip_endpoint(), rdata, tdata, NULL, NULL);
 		} else {
@@ -726,6 +727,7 @@
 	}
 	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);
 	if (ast_sip_register_service(&session_module)) {
 		return AST_MODULE_LOAD_DECLINE;




More information about the asterisk-commits mailing list