[asterisk-commits] mmichelson: branch group/pimp_my_sip r379038 - /team/group/pimp_my_sip/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 14 10:24:31 CST 2013
Author: mmichelson
Date: Mon Jan 14 10:24:28 2013
New Revision: 379038
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379038
Log:
Make adjustments to chan_gulp so it compiles.
* Comment out declaration of sched since it is not used.
* Add stub for gulp_sendtext to prevent compiler warning.
Modified:
team/group/pimp_my_sip/channels/chan_gulp.c
Modified: team/group/pimp_my_sip/channels/chan_gulp.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/channels/chan_gulp.c?view=diff&rev=379038&r1=379037&r2=379038
==============================================================================
--- team/group/pimp_my_sip/channels/chan_gulp.c (original)
+++ team/group/pimp_my_sip/channels/chan_gulp.c Mon Jan 14 10:24:28 2013
@@ -51,7 +51,12 @@
static const char desc[] = "Gulp SIP Channel";
static const char channel_type[] = "Gulp";
-static struct ast_sched_context *sched; /*!< Scheduling context for RTCP */
+/* XXX Uncomment once sched is used. Otherwise get compilation
+ * error saying that it is defined but not used
+ */
+#if 0
+static struct ast_sched_context *sched; /*!< Scheduling context for RTCP */
+#endif
/* \brief Asterisk core interaction functions */
static struct ast_channel *gulp_request(const char *type, struct ast_format_cap *cap, const struct ast_channel *requestor, const char *data, int *cause);
@@ -71,6 +76,7 @@
.type = channel_type,
.description = "Gulp SIP Channel Driver",
.requester = gulp_request,
+ .send_text = gulp_sendtext,
.send_digit_begin = gulp_digit_begin,
.send_digit_end = gulp_digit_end,
.bridge = ast_rtp_instance_bridge,
@@ -171,6 +177,12 @@
return NULL;
}
+/*! \brief Function called by core to send text on Gulp session */
+static int gulp_sendtext(struct ast_channel *ast, const char *text)
+{
+ return 0;
+}
+
/*!
* \brief Load the module
*
More information about the asterisk-commits
mailing list