[asterisk-commits] rmudgett: branch group/bridge_construction r386147 - in /team/group/bridge_co...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 19 14:10:35 CDT 2013


Author: rmudgett
Date: Fri Apr 19 14:10:31 2013
New Revision: 386147

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386147
Log:
Remove local channel /b option.

Modified:
    team/group/bridge_construction/CHANGES
    team/group/bridge_construction/UPGRADE.txt
    team/group/bridge_construction/channels/chan_local.c

Modified: team/group/bridge_construction/CHANGES
URL: http://svnview.digium.com/svn/asterisk/team/group/bridge_construction/CHANGES?view=diff&rev=386147&r1=386146&r2=386147
==============================================================================
--- team/group/bridge_construction/CHANGES (original)
+++ team/group/bridge_construction/CHANGES Fri Apr 19 14:10:31 2013
@@ -61,6 +61,10 @@
 
 Channel Drivers
 ------------------
+
+chan_local
+------------------
+ * The /b option is removed.
 
 chan_mobile
 ------------------

Modified: team/group/bridge_construction/UPGRADE.txt
URL: http://svnview.digium.com/svn/asterisk/team/group/bridge_construction/UPGRADE.txt?view=diff&rev=386147&r1=386146&r2=386147
==============================================================================
--- team/group/bridge_construction/UPGRADE.txt (original)
+++ team/group/bridge_construction/UPGRADE.txt Fri Apr 19 14:10:31 2013
@@ -68,6 +68,9 @@
    between 'w' and 'W'.  The 'w' pauses dialing for half a second.  The 'W'
    pauses dialing for one second.
  - The default for inband_on_proceeding has changed to no.
+
+chan_local:
+ - The /b option is removed.
 
 Dialplan:
  - All channel and global variable names are evaluated in a case-sensitive manner.

Modified: team/group/bridge_construction/channels/chan_local.c
URL: http://svnview.digium.com/svn/asterisk/team/group/bridge_construction/channels/chan_local.c?view=diff&rev=386147&r1=386146&r2=386147
==============================================================================
--- team/group/bridge_construction/channels/chan_local.c (original)
+++ team/group/bridge_construction/channels/chan_local.c Fri Apr 19 14:10:31 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