[asterisk-commits] kmoore: branch kmoore/cel_backend_refactor r396086 - in /team/kmoore/cel_back...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Aug 2 07:28:38 CDT 2013


Author: kmoore
Date: Fri Aug  2 07:28:16 2013
New Revision: 396086

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=396086
Log:
Update to current trunk

Added:
    team/kmoore/cel_backend_refactor/doc/snapshots.xslt
      - copied unchanged from r396076, team/kmoore/event_system_strip/doc/snapshots.xslt
    team/kmoore/cel_backend_refactor/include/asterisk/pickup.h
      - copied unchanged from r396076, team/kmoore/event_system_strip/include/asterisk/pickup.h
    team/kmoore/cel_backend_refactor/include/asterisk/stasis_cache_pattern.h
      - copied unchanged from r396076, team/kmoore/event_system_strip/include/asterisk/stasis_cache_pattern.h
    team/kmoore/cel_backend_refactor/main/pickup.c
      - copied unchanged from r396076, team/kmoore/event_system_strip/main/pickup.c
    team/kmoore/cel_backend_refactor/main/stasis_cache_pattern.c
      - copied unchanged from r396076, team/kmoore/event_system_strip/main/stasis_cache_pattern.c
    team/kmoore/cel_backend_refactor/main/stasis_wait.c
      - copied unchanged from r396076, team/kmoore/event_system_strip/main/stasis_wait.c
Modified:
    team/kmoore/cel_backend_refactor/   (props changed)
    team/kmoore/cel_backend_refactor/CHANGES
    team/kmoore/cel_backend_refactor/Makefile
    team/kmoore/cel_backend_refactor/UPGRADE.txt
    team/kmoore/cel_backend_refactor/apps/app_agent_pool.c
    team/kmoore/cel_backend_refactor/apps/app_directed_pickup.c
    team/kmoore/cel_backend_refactor/apps/app_meetme.c
    team/kmoore/cel_backend_refactor/apps/app_minivm.c
    team/kmoore/cel_backend_refactor/apps/app_queue.c
    team/kmoore/cel_backend_refactor/apps/app_stack.c
    team/kmoore/cel_backend_refactor/apps/app_voicemail.c
    team/kmoore/cel_backend_refactor/apps/confbridge/confbridge_manager.c
    team/kmoore/cel_backend_refactor/channels/chan_dahdi.c
    team/kmoore/cel_backend_refactor/channels/chan_gtalk.c
    team/kmoore/cel_backend_refactor/channels/chan_iax2.c
    team/kmoore/cel_backend_refactor/channels/chan_mgcp.c
    team/kmoore/cel_backend_refactor/channels/chan_pjsip.c
    team/kmoore/cel_backend_refactor/channels/chan_sip.c
    team/kmoore/cel_backend_refactor/channels/chan_skinny.c
    team/kmoore/cel_backend_refactor/channels/chan_unistim.c
    team/kmoore/cel_backend_refactor/channels/sig_analog.c
    team/kmoore/cel_backend_refactor/channels/sig_pri.c
    team/kmoore/cel_backend_refactor/configure
    team/kmoore/cel_backend_refactor/configure.ac
    team/kmoore/cel_backend_refactor/contrib/scripts/install_prereq
    team/kmoore/cel_backend_refactor/doc/appdocsxml.dtd
    team/kmoore/cel_backend_refactor/funcs/func_global.c
    team/kmoore/cel_backend_refactor/include/asterisk/_private.h
    team/kmoore/cel_backend_refactor/include/asterisk/app.h
    team/kmoore/cel_backend_refactor/include/asterisk/autoconfig.h.in
    team/kmoore/cel_backend_refactor/include/asterisk/bridge.h
    team/kmoore/cel_backend_refactor/include/asterisk/channel.h
    team/kmoore/cel_backend_refactor/include/asterisk/channel_internal.h
    team/kmoore/cel_backend_refactor/include/asterisk/devicestate.h
    team/kmoore/cel_backend_refactor/include/asterisk/features.h
    team/kmoore/cel_backend_refactor/include/asterisk/parking.h
    team/kmoore/cel_backend_refactor/include/asterisk/presencestate.h
    team/kmoore/cel_backend_refactor/include/asterisk/stasis.h
    team/kmoore/cel_backend_refactor/include/asterisk/stasis_bridges.h
    team/kmoore/cel_backend_refactor/include/asterisk/stasis_channels.h
    team/kmoore/cel_backend_refactor/include/asterisk/stasis_endpoints.h
    team/kmoore/cel_backend_refactor/main/Makefile
    team/kmoore/cel_backend_refactor/main/aoc.c
    team/kmoore/cel_backend_refactor/main/app.c
    team/kmoore/cel_backend_refactor/main/asterisk.c
    team/kmoore/cel_backend_refactor/main/bridge.c
    team/kmoore/cel_backend_refactor/main/bridge_channel.c
    team/kmoore/cel_backend_refactor/main/cdr.c
    team/kmoore/cel_backend_refactor/main/cel.c
    team/kmoore/cel_backend_refactor/main/channel_internal_api.c
    team/kmoore/cel_backend_refactor/main/cli.c
    team/kmoore/cel_backend_refactor/main/core_local.c
    team/kmoore/cel_backend_refactor/main/devicestate.c
    team/kmoore/cel_backend_refactor/main/endpoints.c
    team/kmoore/cel_backend_refactor/main/features.c
    team/kmoore/cel_backend_refactor/main/manager.c
    team/kmoore/cel_backend_refactor/main/manager_bridges.c
    team/kmoore/cel_backend_refactor/main/manager_channels.c
    team/kmoore/cel_backend_refactor/main/manager_endpoints.c
    team/kmoore/cel_backend_refactor/main/manager_mwi.c
    team/kmoore/cel_backend_refactor/main/parking.c
    team/kmoore/cel_backend_refactor/main/pbx.c
    team/kmoore/cel_backend_refactor/main/presencestate.c
    team/kmoore/cel_backend_refactor/main/rtp_engine.c
    team/kmoore/cel_backend_refactor/main/sorcery.c
    team/kmoore/cel_backend_refactor/main/stasis.c
    team/kmoore/cel_backend_refactor/main/stasis_bridges.c
    team/kmoore/cel_backend_refactor/main/stasis_cache.c
    team/kmoore/cel_backend_refactor/main/stasis_channels.c
    team/kmoore/cel_backend_refactor/main/stasis_endpoints.c
    team/kmoore/cel_backend_refactor/main/xml.c
    team/kmoore/cel_backend_refactor/makeopts.in
    team/kmoore/cel_backend_refactor/res/ari/resource_bridges.c
    team/kmoore/cel_backend_refactor/res/ari/resource_channels.c
    team/kmoore/cel_backend_refactor/res/ari/resource_endpoints.c
    team/kmoore/cel_backend_refactor/res/parking/parking_applications.c
    team/kmoore/cel_backend_refactor/res/parking/parking_bridge_features.c
    team/kmoore/cel_backend_refactor/res/parking/parking_manager.c
    team/kmoore/cel_backend_refactor/res/res_agi.c
    team/kmoore/cel_backend_refactor/res/res_chan_stats.c
    team/kmoore/cel_backend_refactor/res/res_jabber.c
    team/kmoore/cel_backend_refactor/res/res_parking.c
    team/kmoore/cel_backend_refactor/res/res_pjsip_mwi.c
    team/kmoore/cel_backend_refactor/res/res_pjsip_registrar.c
    team/kmoore/cel_backend_refactor/res/res_pjsip_session.c
    team/kmoore/cel_backend_refactor/res/res_stasis.c
    team/kmoore/cel_backend_refactor/res/res_xmpp.c
    team/kmoore/cel_backend_refactor/res/stasis/control.c
    team/kmoore/cel_backend_refactor/tests/test_cel.c
    team/kmoore/cel_backend_refactor/tests/test_devicestate.c
    team/kmoore/cel_backend_refactor/tests/test_stasis.c
    team/kmoore/cel_backend_refactor/tests/test_stasis_endpoints.c
    team/kmoore/cel_backend_refactor/utils/astman.c

Propchange: team/kmoore/cel_backend_refactor/
------------------------------------------------------------------------------
--- cel_integrated (original)
+++ cel_integrated Fri Aug  2 07:28:16 2013
@@ -1,1 +1,1 @@
-/team/kmoore/event_system_strip:1-395926
+/team/kmoore/event_system_strip:1-396085

Modified: team/kmoore/cel_backend_refactor/CHANGES
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/CHANGES?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/CHANGES (original)
+++ team/kmoore/cel_backend_refactor/CHANGES Fri Aug  2 07:28:16 2013
@@ -98,6 +98,12 @@
    AgentConnect, AgentComplete, AgentDump, and AgentRingNoAnswer will always be
    sent.  The "Variable" fields will also no longer exist on the Agent* events.
 
+ * Queues now support a hint for member paused state. The hint uses the form
+   'Queue:{queue_name}_pause_{member_name}', where {queue_name} and {member_name}
+   are the name of the queue and the name of the member to subscribe to,
+   respectively. For example: exten => 8501,hint,Queue:sales_pause_mark.
+   Members will show as In Use when paused.
+
 ResetCDR
 ------------------
  * The 'e' option has been deprecated. Use the CDR_PROP function to re-enable
@@ -115,6 +121,13 @@
  * UserEvent will now handle duplicate keys by overwriting the previous value
    assigned to the key. UserEvent invocations will also be distributed to any
    interested res_stasis applications.
+
+
+Build System
+------------------
+ * Asterisk now optionally uses libxslt to improve XML documentation generation
+   and maintainability. If libxslt is not available on the system, some XML
+   documentation will be incomplete.
 
 
 Core
@@ -297,6 +310,15 @@
  * The option 'allowmultiplelogin' can now be set or overriden in a particular
    account. When set in the general context, it will act as the default
    setting for defined accounts.
+
+ * The 'BridgeAction' event was removed. It technically added no value, as the
+   Bridge Action already receives confirmation of the bridge through a
+   successful completion Event.
+
+ * The 'BridgeExec' events were removed. These events duplicated the events that
+   occur in the Briding API, and are conveyed now through BridgeCreate,
+   BridgeEnter, and BridgeLeave events.
+
 
 AGI (Asterisk Gateway Interface)
 ------------------

Modified: team/kmoore/cel_backend_refactor/Makefile
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/Makefile?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/Makefile (original)
+++ team/kmoore/cel_backend_refactor/Makefile Fri Aug  2 07:28:16 2013
@@ -444,6 +444,7 @@
 		$(INSTALL) -m 644 $$x "$(DESTDIR)$(ASTDATADIR)/static-http" ; \
 	done
 	$(INSTALL) -m 644 doc/core-en_US.xml "$(DESTDIR)$(ASTDATADIR)/static-http";
+	$(INSTALL) -m 644 doc/snapshots.xslt "$(DESTDIR)$(ASTDATADIR)/static-http";
 	if [ -d doc/tex/asterisk ] ; then \
 		$(INSTALL) -d "$(DESTDIR)$(ASTDATADIR)/static-http/docs" ; \
 		for n in doc/tex/asterisk/* ; do \
@@ -466,6 +467,7 @@
 	@printf "Building Documentation For: "
 	@echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
 	@echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@
+	@echo "<?xml-stylesheet type=\"text/xsl\" href=\"snapshots.xslt\"?>" > $@
 	@echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
 	@for x in $(MOD_SUBDIRS); do \
 		printf "$$x " ; \
@@ -489,6 +491,7 @@
 	@printf "Building Documentation For: "
 	@echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $@
 	@echo "<!DOCTYPE docs SYSTEM \"appdocsxml.dtd\">" >> $@
+	@echo "<?xml-stylesheet type=\"text/xsl\" href=\"snapshots.xslt\"?>" > $@
 	@echo "<docs xmlns:xi=\"http://www.w3.org/2001/XInclude\">" >> $@
 	@for x in $(MOD_SUBDIRS); do \
 		printf "$$x " ; \
@@ -571,6 +574,7 @@
 	fi
 
 	$(INSTALL) -m 644 doc/core-*.xml "$(DESTDIR)$(ASTDATADIR)/documentation"
+	$(INSTALL) -m 644 doc/snapshots.xslt "$(DESTDIR)$(ASTDATADIR)/documentation"
 	$(INSTALL) -m 644 doc/appdocsxml.dtd "$(DESTDIR)$(ASTDATADIR)/documentation"
 	$(INSTALL) -m 644 doc/asterisk.8 "$(DESTDIR)$(ASTMANDIR)/man8"
 	$(INSTALL) -m 644 contrib/scripts/astgenkey.8 "$(DESTDIR)$(ASTMANDIR)/man8"

Modified: team/kmoore/cel_backend_refactor/UPGRADE.txt
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/UPGRADE.txt?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/UPGRADE.txt (original)
+++ team/kmoore/cel_backend_refactor/UPGRADE.txt Fri Aug  2 07:28:16 2013
@@ -96,6 +96,11 @@
  - The Uniqueid field for a channel is now a stable identifier, and will not
    change due to transfers, parking, etc.
 
+Build System:
+ - Asterisk now optionally uses libxslt to improve XML documentation generation
+   and maintainability. If libxslt is not available on the system, some XML
+   documentation will be incomplete.
+
 Core:
  - The following channel variables have changed behavior which is described in
    the CHANGES file: TRANSFER_CONTEXT, BRIDGEPEER, BRIDGEPVTCALLID,
@@ -179,6 +184,10 @@
 
  - Executing a dynamic feature on the bridge peer in a multi-party bridge will
    execute it on all peers of the activating channel.
+
+ - There is no longer an explicit 'features reload' CLI command. Features can still be
+   reloaded using 'module reload features'.
+
 
 Parking:
  - The arguments for the Park, ParkedCall, and ParkAndAnnounce applications have

Modified: team/kmoore/cel_backend_refactor/apps/app_agent_pool.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_agent_pool.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_agent_pool.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_agent_pool.c Fri Aug  2 07:28:16 2013
@@ -202,49 +202,12 @@
 					<para>Epoche time when the agent logged in.</para>
 					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
 				</parameter>
-				<parameter name="Channel">
-					<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter[@name='Channel']/para)" />
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="ChannelState">
-					<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter[@name='ChannelState']/para)" />
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="ChannelStateDesc">
-					<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter[@name='ChannelStateDesc']/para)" />
-					<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter[@name='ChannelStateDesc']/enumlist)" />
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="CallerIDNum">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="CallerIDName">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="ConnectedLineNum">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="ConnectedLineName">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="AccountCode">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="Context">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="Exten">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="Priority">
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
-				<parameter name="Uniqueid">
-					<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter[@name='Uniqueid']/para)" />
-					<para>Present if Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
-				</parameter>
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
 			</syntax>
+			<description>
+				<para>The channel snapshot is present if the Status value is <literal>AGENT_IDLE</literal> or <literal>AGENT_ONCALL</literal>.</para>
+			</description>
 			<see-also>
 				<ref type="manager">Agents</ref>
 			</see-also>

Modified: team/kmoore/cel_backend_refactor/apps/app_directed_pickup.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_directed_pickup.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_directed_pickup.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_directed_pickup.c Fri Aug  2 07:28:16 2013
@@ -43,7 +43,7 @@
 #include "asterisk/module.h"
 #include "asterisk/lock.h"
 #include "asterisk/app.h"
-#include "asterisk/features.h"
+#include "asterisk/pickup.h"
 #include "asterisk/manager.h"
 #include "asterisk/callerid.h"
 
@@ -305,7 +305,7 @@
 	return 0;
 }
 
-/* Find channel for pick up specified by partial channel name */ 
+/* Find channel for pick up specified by partial channel name */
 static int find_by_part(void *obj, void *arg, void *data, int flags)
 {
 	struct ast_channel *target = obj;/*!< Potential pickup target */
@@ -323,7 +323,7 @@
 	return 0;
 }
 
-/* Attempt to pick up specified by partial channel name */ 
+/* Attempt to pick up specified by partial channel name */
 static int pickup_by_part(struct ast_channel *chan, const char *part)
 {
 	struct ast_channel *target;/*!< Potential pickup target */

Modified: team/kmoore/cel_backend_refactor/apps/app_meetme.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_meetme.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_meetme.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_meetme.c Fri Aug  2 07:28:16 2013
@@ -567,7 +567,7 @@
 				<parameter name="Usernum">
 					<para>The identifier of the MeetMe user who joined.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">MeetmeLeave</ref>
@@ -580,7 +580,7 @@
 			<synopsis>Raised when a user leaves a MeetMe conference.</synopsis>
 			<syntax>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeJoin']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<parameter name="Duration">
 					<para>The length of time in seconds that the Meetme user was in the conference.</para>
 				</parameter>
@@ -606,7 +606,7 @@
 			<synopsis>Raised when a MeetMe user has started talking.</synopsis>
 			<syntax>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeJoin']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<parameter name="Duration">
 					<para>The length of time in seconds that the Meetme user has been in the conference at the time of this event.</para>
 				</parameter>
@@ -624,7 +624,7 @@
 			<synopsis>Raised when a MeetMe user begins or ends talking.</synopsis>
 			<syntax>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeJoin']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeTalkRequest']/managerEventInstance/syntax/parameter)" />
 			</syntax>
 		</managerEventInstance>
@@ -634,7 +634,7 @@
 			<synopsis>Raised when a MeetMe user is muted or unmuted.</synopsis>
 			<syntax>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeJoin']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='MeetmeTalkRequest']/managerEventInstance/syntax/parameter)" />
 			</syntax>
 		</managerEventInstance>
@@ -1167,7 +1167,7 @@
 	STASIS_MESSAGE_TYPE_INIT(meetme_talk_request_type);
 
 	meetme_event_message_router = stasis_message_router_create(
-		stasis_caching_get_topic(ast_channel_topic_all_cached()));
+		ast_channel_cache());
 
 	if (!meetme_event_message_router) {
 		meetme_stasis_cleanup();

Modified: team/kmoore/cel_backend_refactor/apps/app_minivm.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_minivm.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_minivm.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_minivm.c Fri Aug  2 07:28:16 2013
@@ -500,7 +500,7 @@
 		<managerEventInstance class="EVENT_FLAG_CALL">
 			<synopsis>Raised when a notification is sent out by a MiniVoiceMail application</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<parameter name="Action">
 					<para>What action was taken. Currently, this will always be <literal>SentNotification</literal></para>
 				</parameter>

Modified: team/kmoore/cel_backend_refactor/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_queue.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_queue.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_queue.c Fri Aug  2 07:28:16 2013
@@ -1017,7 +1017,7 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a caller joins a Queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<parameter name="Position">
 					<para>This channel's current position in the queue.</para>
@@ -1036,7 +1036,7 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a caller leaves a Queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueCallerJoin']/managerEventInstance/syntax/parameter[@name='Count'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueCallerJoin']/managerEventInstance/syntax/parameter[@name='Position'])" />
@@ -1050,7 +1050,7 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a caller abandons the queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueCallerJoin']/managerEventInstance/syntax/parameter[@name='Position'])" />
 				<parameter name="OriginalPosition">
@@ -1066,8 +1066,8 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when an queue member is notified of a caller in the queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='DialBegin']/managerEventInstance/syntax/parameter[contains(@name, 'Dest')])" />
+				<channel_snapshot/>
+				<channel_snapshot prefix="Dest"/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='MemberName'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Interface'])" />
@@ -1083,8 +1083,8 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a queue member is notified of a caller in the queue and fails to answer.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='DialBegin']/managerEventInstance/syntax/parameter[contains(@name, 'Dest')])" />
+				<channel_snapshot/>
+				<channel_snapshot prefix="Dest"/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='MemberName'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Interface'])" />
@@ -1101,8 +1101,8 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a queue member has finished servicing a caller in the queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='DialBegin']/managerEventInstance/syntax/parameter[contains(@name, 'Dest')])" />
+				<channel_snapshot/>
+				<channel_snapshot prefix="Dest"/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='MemberName'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Interface'])" />
@@ -1128,8 +1128,8 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a queue member hangs up on a caller in the queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='DialBegin']/managerEventInstance/syntax/parameter[contains(@name, 'Dest')])" />
+				<channel_snapshot/>
+				<channel_snapshot prefix="Dest"/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='MemberName'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Interface'])" />
@@ -1144,8 +1144,8 @@
 		<managerEventInstance class="EVENT_FLAG_AGENT">
 			<synopsis>Raised when a queue member answers and is bridged to a caller in the queue.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='DialBegin']/managerEventInstance/syntax/parameter[contains(@name, 'Dest')])" />
+				<channel_snapshot/>
+				<channel_snapshot prefix="Dest"/>
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Queue'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='MemberName'])" />
 				<xi:include xpointer="xpointer(/docs/managerEvent[@name='QueueMemberStatus']/managerEventInstance/syntax/parameter[@name='Interface'])" />
@@ -2780,6 +2780,11 @@
 	}
 }
 
+
+#define QUEUE_PAUSED_DEVSTATE AST_DEVICE_INUSE
+#define QUEUE_UNPAUSED_DEVSTATE AST_DEVICE_NOT_INUSE
+#define QUEUE_UNKNOWN_PAUSED_DEVSTATE AST_DEVICE_NOT_INUSE
+
 /*! \internal
  * \brief If adding a single new member to a queue, use this function instead of ao2_linking.
  *        This adds round robin queue position data for a fresh member as well as links it.
@@ -2791,6 +2796,8 @@
 	ao2_lock(queue->members);
 	mem->queuepos = ao2_container_count(queue->members);
 	ao2_link(queue->members, mem);
+	ast_devstate_changed(mem->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,
+		AST_DEVSTATE_CACHABLE, "Queue:%s_pause_%s", queue->name, mem->interface);
 	ao2_unlock(queue->members);
 }
 
@@ -2803,6 +2810,7 @@
 static void member_remove_from_queue(struct call_queue *queue, struct member *mem)
 {
 	ao2_lock(queue->members);
+	ast_devstate_changed(QUEUE_UNKNOWN_PAUSED_DEVSTATE, AST_DEVSTATE_CACHABLE, "Queue:%s_pause_%s", queue->name, mem->interface);
 	queue_member_follower_removal(queue, mem);
 	ao2_unlink(queue->members, mem);
 	ao2_unlock(queue->members);
@@ -2869,6 +2877,8 @@
 			ast_copy_string(m->rt_uniqueid, rt_uniqueid, sizeof(m->rt_uniqueid));
 			if (paused_str) {
 				m->paused = paused;
+				ast_devstate_changed(m->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,
+					AST_DEVSTATE_CACHABLE, "Queue:%s_pause_%s", q->name, m->interface);
 			}
 			if (strcasecmp(state_interface, m->state_interface)) {
 				ast_copy_string(m->state_interface, state_interface, sizeof(m->state_interface));
@@ -6285,7 +6295,8 @@
 				}
 
 				mem->paused = paused;
-
+				ast_devstate_changed(mem->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,
+					AST_DEVSTATE_CACHABLE, "Queue:%s_pause_%s", q->name, mem->interface);
 				found++;
 
 				/* Before we do the PAUSE/UNPAUSE log, if this was a PAUSEALL/UNPAUSEALL, log that here, but only on the first found entry. */
@@ -7424,8 +7435,10 @@
 				if (m->realtime) {
 					update_realtime_member_field(m, q->name, args.option, rtvalue);
 				}
-
 				m->paused = (memvalue <= 0) ? 0 : 1;
+				ast_devstate_changed(m->paused ? QUEUE_PAUSED_DEVSTATE : QUEUE_UNPAUSED_DEVSTATE,
+					AST_DEVSTATE_CACHABLE, "Queue:%s_pause_%s", q->name, args.interface);
+
 			} else if ((!strcasecmp(args.option, "ignorebusy")) || (!strcasecmp(args.option, "ringinuse"))) {
 				if (m->realtime) {
 					update_realtime_member_field(m, q->name, args.option, rtvalue);

Modified: team/kmoore/cel_backend_refactor/apps/app_stack.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_stack.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_stack.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_stack.c Fri Aug  2 07:28:16 2013
@@ -211,7 +211,7 @@
 		<managerEventInstance class="EVENT_FLAG_DIALPLAN">
 			<synopsis>Raised when a variable local to the gosub stack frame is set due to a subroutine call.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<parameter name="Variable">
 					<para>The LOCAL variable being set.</para>
 					<note><para>The variable name will always be enclosed with

Modified: team/kmoore/cel_backend_refactor/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/app_voicemail.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/app_voicemail.c (original)
+++ team/kmoore/cel_backend_refactor/apps/app_voicemail.c Fri Aug  2 07:28:16 2013
@@ -12639,7 +12639,7 @@
 	mwi_sub_sub = stasis_subscribe(ast_mwi_topic_all(), mwi_event_cb, NULL);
 
 	if (mwi_sub_sub) {
-		struct ao2_container *cached = stasis_cache_dump(ast_mwi_topic_cached(), stasis_subscription_change_type());
+		struct ao2_container *cached = stasis_cache_dump(ast_mwi_state_cache(), stasis_subscription_change_type());
 		if (cached) {
 			ao2_callback(cached, OBJ_MULTIPLE | OBJ_NODATA, dump_cache, NULL);
 		}

Modified: team/kmoore/cel_backend_refactor/apps/confbridge/confbridge_manager.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/apps/confbridge/confbridge_manager.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/apps/confbridge/confbridge_manager.c (original)
+++ team/kmoore/cel_backend_refactor/apps/confbridge/confbridge_manager.c Fri Aug  2 07:28:16 2013
@@ -44,7 +44,7 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeEnd</ref>
@@ -59,7 +59,7 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeStart</ref>
@@ -74,8 +74,8 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
+				<channel_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeLeave</ref>
@@ -90,8 +90,8 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
+				<channel_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeJoin</ref>
@@ -106,7 +106,7 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeStopRecord</ref>
@@ -121,7 +121,7 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeRecord</ref>
@@ -136,8 +136,8 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
+				<channel_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeUnmute</ref>
@@ -152,8 +152,8 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
+				<channel_snapshot/>
 			</syntax>
 			<see-also>
 				<ref type="managerEvent">ConfbridgeMute</ref>
@@ -161,7 +161,6 @@
 			</see-also>
 		</managerEventInstance>
 	</managerEvent>
-
 	<managerEvent language="en_US" name="ConfbridgeTalking">
 		<managerEventInstance class="EVENT_FLAG_CALL">
 			<synopsis>Raised when a confbridge participant unmutes.</synopsis>
@@ -169,8 +168,8 @@
 				<parameter name="Conference">
 					<para>The name of the Confbridge conference.</para>
 				</parameter>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='BridgeCreate']/managerEventInstance/syntax/parameter)" />
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<bridge_snapshot/>
+				<channel_snapshot/>
 				<parameter name="TalkingStatus">
 					<enumlist>
 						<enum name="on"/>
@@ -344,7 +343,7 @@
 	STASIS_MESSAGE_TYPE_INIT(confbridge_talking_type);
 
 	bridge_state_router = stasis_message_router_create(
-		stasis_caching_get_topic(ast_bridge_topic_all_cached()));
+		ast_bridge_topic_all_cached());
 
 	if (!bridge_state_router) {
 		return -1;
@@ -415,7 +414,7 @@
 	}
 
 	channel_state_router = stasis_message_router_create(
-		stasis_caching_get_topic(ast_channel_topic_all_cached()));
+		ast_channel_topic_all_cached());
 
 	if (!channel_state_router) {
 		manager_confbridge_shutdown();

Modified: team/kmoore/cel_backend_refactor/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/cel_backend_refactor/channels/chan_dahdi.c?view=diff&rev=396086&r1=396085&r2=396086
==============================================================================
--- team/kmoore/cel_backend_refactor/channels/chan_dahdi.c (original)
+++ team/kmoore/cel_backend_refactor/channels/chan_dahdi.c Fri Aug  2 07:28:16 2013
@@ -102,6 +102,7 @@
 #include "asterisk/callerid.h"
 #include "asterisk/adsi.h"
 #include "asterisk/cli.h"
+#include "asterisk/pickup.h"
 #include "asterisk/features.h"
 #include "asterisk/musiconhold.h"
 #include "asterisk/say.h"
@@ -125,6 +126,7 @@
 #include "asterisk/features_config.h"
 #include "asterisk/bridge.h"
 #include "asterisk/stasis_channels.h"
+#include "asterisk/parking.h"
 #include "chan_dahdi.h"
 #include "dahdi/bridge_native_dahdi.h"
 
@@ -361,7 +363,7 @@
 		<managerEventInstance class="EVENT_FLAG_CALL">
 			<synopsis>Raised when a DAHDI channel is created or an underlying technology is associated with a DAHDI channel.</synopsis>
 			<syntax>
-				<xi:include xpointer="xpointer(/docs/managerEvent[@name='Newchannel']/managerEventInstance/syntax/parameter)" />
+				<channel_snapshot/>
 				<parameter name="DAHDISpan">
 					<para>The DAHDI span associated with this channel.</para>
 				</parameter>
@@ -4821,7 +4823,7 @@
 	}
 
 	ast_str_set(&uniqueid, 0, "%s@%s", mailbox, context);
-	mwi_message = stasis_cache_get(ast_mwi_topic_cached(), ast_mwi_state_type(), ast_str_buffer(uniqueid));
+	mwi_message = stasis_cache_get(ast_mwi_state_cache(), ast_mwi_state_type(), ast_str_buffer(uniqueid));
 
 	if (mwi_message) {
 		struct ast_mwi_state *mwi_state = stasis_message_data(mwi_message);
@@ -9229,6 +9231,10 @@
 	int idx;
 	struct ast_format tmpfmt;
 	RAII_VAR(struct ast_features_pickup_config *, pickup_cfg, NULL, ao2_cleanup);
+	RAII_VAR(struct ast_parking_bridge_feature_fn_table *, parking_provider,
+		ast_parking_get_bridge_features(),
+		ao2_cleanup);
+	int is_exten_parking;
 	const char *pickupexten;
 
 	ast_mutex_lock(&ss_thread_lock);
@@ -9559,11 +9565,13 @@
 				exten[len++]=res;
 				exten[len] = '\0';
 			}

[... 8565 lines stripped ...]



More information about the asterisk-commits mailing list