[svn-commits] russell: branch russell/events r111243 - /team/russell/events/res/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 26 17:25:07 CDT 2008


Author: russell
Date: Wed Mar 26 17:25:07 2008
New Revision: 111243

URL: http://svn.digium.com/view/asterisk?view=rev&rev=111243
Log:
add an example of current functionality ...

Modified:
    team/russell/events/res/res_xmlevents.c

Modified: team/russell/events/res/res_xmlevents.c
URL: http://svn.digium.com/view/asterisk/team/russell/events/res/res_xmlevents.c?view=diff&rev=111243&r1=111242&r2=111243
==============================================================================
--- team/russell/events/res/res_xmlevents.c (original)
+++ team/russell/events/res/res_xmlevents.c Wed Mar 26 17:25:07 2008
@@ -46,6 +46,31 @@
 #include "asterisk/astobj2.h"
 #include "asterisk/linkedlists.h"
 
+/*
+
+Example message exchange ...
+
+Asterisk              Client
+--------              ------
+    <--------------------
+		<subscribe name="DeviceState" request_id="123">
+			<ie name="Device">Console/Default</ie>
+		</subscribe>
+
+	--------------------->
+		<subscription id="0" request_id="123"/>
+
+	--------------------->
+		<event name="DeviceState">
+			<ie name="Device">Console/default</ie>
+			<ie name="State">1</ie>
+			<ie name="EntityID">00:11:24:dd:59:5e</ie>
+		</event>
+
+    <--------------------
+		<unsubscribe id="0"/>
+ */
+
 #define DEFAULT_XML_EVENTS_TCP_PORT 7103
 #define DEFAULT_XML_EVENTS_TLS_PORT 7104
 




More information about the svn-commits mailing list