[asterisk-commits] rmudgett: branch rmudgett/bridge_tasks r385819 - in /team/rmudgett/bridge_tas...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Apr 15 16:18:56 CDT 2013
Author: rmudgett
Date: Mon Apr 15 16:18:52 2013
New Revision: 385819
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=385819
Log:
Remove local channel /b option.
Modified:
team/rmudgett/bridge_tasks/CHANGES
team/rmudgett/bridge_tasks/channels/chan_local.c
Modified: team/rmudgett/bridge_tasks/CHANGES
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/bridge_tasks/CHANGES?view=diff&rev=385819&r1=385818&r2=385819
==============================================================================
--- team/rmudgett/bridge_tasks/CHANGES (original)
+++ team/rmudgett/bridge_tasks/CHANGES Mon Apr 15 16:18:52 2013
@@ -61,6 +61,10 @@
Channel Drivers
------------------
+
+chan_local
+------------------
+ * The /b option is removed.
chan_mobile
------------------
Modified: team/rmudgett/bridge_tasks/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/bridge_tasks/channels/chan_local.c?view=diff&rev=385819&r1=385818&r2=385819
==============================================================================
--- team/rmudgett/bridge_tasks/channels/chan_local.c (original)
+++ team/rmudgett/bridge_tasks/channels/chan_local.c Mon Apr 15 16:18:52 2013
@@ -108,7 +108,6 @@
static int local_sendhtml(struct ast_channel *ast, int subclass, const char *data, int datalen);
static int local_sendtext(struct ast_channel *ast, const char *text);
static int local_devicestate(const char *data);
-static struct ast_channel *local_bridgedchannel(struct ast_channel *chan, struct ast_channel *bridge);
static int local_queryoption(struct ast_channel *ast, int option, void *data, int *datalen);
static int local_setoption(struct ast_channel *chan, int option, void *data, int datalen);
@@ -131,7 +130,6 @@
.send_html = local_sendhtml,
.send_text = local_sendtext,
.devicestate = local_devicestate,
- .bridged_channel = local_bridgedchannel,
.queryoption = local_queryoption,
.setoption = local_setoption,
};
@@ -156,8 +154,7 @@
#define LOCAL_ALREADY_MASQED (1 << 0) /*!< Already masqueraded */
#define LOCAL_LAUNCHED_PBX (1 << 1) /*!< PBX was launched */
#define LOCAL_NO_OPTIMIZATION (1 << 2) /*!< Do not optimize using masquerading */
-#define LOCAL_BRIDGE (1 << 3) /*!< Report back the "true" channel as being bridged to */
-#define LOCAL_MOH_PASSTHRU (1 << 4) /*!< Pass through music on hold start/stop frames */
+#define LOCAL_MOH_PASSTHRU (1 << 3) /*!< Pass through music on hold start/stop frames */
/*!
* \brief Send a pvt in with no locks held and get all locks
@@ -327,37 +324,6 @@
ao2_iterator_destroy(&it);
return res;
-}
-
-/*! \brief Return the bridged channel of a Local channel */
-static struct ast_channel *local_bridgedchannel(struct ast_channel *chan, struct ast_channel *bridge)
-{
- struct local_pvt *p = ast_channel_tech_pvt(bridge);
- struct ast_channel *bridged = bridge;
-
- if (!p) {
- ast_debug(1, "Asked for bridged channel on '%s'/'%s', returning <none>\n",
- ast_channel_name(chan), ast_channel_name(bridge));
- return NULL;
- }
-
- ao2_lock(p);
-
- if (ast_test_flag(p, LOCAL_BRIDGE)) {
- /* Find the opposite channel */
- bridged = (bridge == p->owner ? p->chan : p->owner);
-
- /* Now see if the opposite channel is bridged to anything */
- if (!bridged) {
- bridged = bridge;
- } else if (ast_channel_internal_bridged_channel(bridged)) {
- bridged = ast_channel_internal_bridged_channel(bridged);
- }
- }
-
- ao2_unlock(p);
-
- return bridged;
}
/* Called with ast locked */
@@ -1192,9 +1158,6 @@
"to use the 'j' option to enable the jitterbuffer\n");
}
}
- if (strchr(opts, 'b')) {
- ast_set_flag(tmp, LOCAL_BRIDGE);
- }
if (strchr(opts, 'm')) {
ast_set_flag(tmp, LOCAL_MOH_PASSTHRU);
}
More information about the asterisk-commits
mailing list