[asterisk-commits] file: branch file/gulp_connected_line r389900 - /team/file/gulp_connected_lin...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue May 28 13:11:10 CDT 2013


Author: file
Date: Tue May 28 13:11:06 2013
New Revision: 389900

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=389900
Log:
Small beginnings.

Modified:
    team/file/gulp_connected_line/channels/chan_gulp.c

Modified: team/file/gulp_connected_line/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/file/gulp_connected_line/channels/chan_gulp.c?view=diff&rev=389900&r1=389899&r2=389900
==============================================================================
--- team/file/gulp_connected_line/channels/chan_gulp.c (original)
+++ team/file/gulp_connected_line/channels/chan_gulp.c Tue May 28 13:11:06 2013
@@ -843,6 +843,14 @@
 	return 0;
 }
 
+/*! \brief Update connected line information */
+static int update_connected_line_information(void *data)
+{
+	RAII_VAR(struct ast_sip_session *, session, data, ao2_cleanup);
+
+	return 0;
+}
+
 /*! \brief Function called by core to ask the channel to indicate some sort of condition */
 static int gulp_indicate(struct ast_channel *ast, int condition, const void *data, size_t datalen)
 {
@@ -906,6 +914,12 @@
 			ast_sip_push_task(session->serializer, transmit_info_with_vidupdate, session);
 		} else
 			res = -1;
+		break;
+	case AST_CONTROL_CONNECTED_LINE:
+		ao2_ref(session, +1);
+		if (ast_sip_push_task(session->serializer, update_connected_line_information, session)) {
+			ao2_cleanup(session);
+		}
 		break;
 	case AST_CONTROL_UPDATE_RTP_PEER:
 	case AST_CONTROL_PVT_CAUSE_CODE:




More information about the asterisk-commits mailing list