[asterisk-commits] mmichelson: branch mmichelson/outbound_auth r384911 - /team/mmichelson/outbou...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 8 09:36:31 CDT 2013


Author: mmichelson
Date: Mon Apr  8 09:36:27 2013
New Revision: 384911

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=384911
Log:
Make updates necessary after video merge.


Modified:
    team/mmichelson/outbound_auth/channels/chan_gulp.c

Modified: team/mmichelson/outbound_auth/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/outbound_auth/channels/chan_gulp.c?view=diff&rev=384911&r1=384910&r2=384911
==============================================================================
--- team/mmichelson/outbound_auth/channels/chan_gulp.c (original)
+++ team/mmichelson/outbound_auth/channels/chan_gulp.c Mon Apr  8 09:36:27 2013
@@ -682,8 +682,19 @@
 	};
 
 	struct ast_sip_session *session = data;
-	if (ast_sip_send_request("INFO", &body, session->inv_session->dlg, NULL) != PJ_SUCCESS) {
+	struct pjsip_tx_data *tdata;
+
+	if (ast_sip_create_request("INFO", session->inv_session->dlg, session->endpoint, NULL, &tdata)) {
+		ast_log(LOG_ERROR, "Could not create text video update INFO request\n");
+		return -1;
+	}
+	if (ast_sip_add_body(tdata, &body)) {
+		ast_log(LOG_ERROR, "Could not add body to text video update INFO request\n");
+		return -1;
+	}
+	if (ast_sip_send_request(tdata, session->inv_session->dlg, session->endpoint)) {
 		ast_log(LOG_ERROR, "Could not send text video update INFO request\n");
+		return -1;
 	}
 
 	return 0;




More information about the asterisk-commits mailing list