[asterisk-commits] kmoore: branch kmoore/stasis-bridging-channel_events r386858 - in /team/kmoor...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 29 09:26:21 CDT 2013


Author: kmoore
Date: Mon Apr 29 09:26:17 2013
New Revision: 386858

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386858
Log:
Whitespace cleanup and removal of redundant processing

Modified:
    team/kmoore/stasis-bridging-channel_events/rest-api-templates/asterisk_processor.py
    team/kmoore/stasis-bridging-channel_events/rest-api-templates/stasis_http_resource.h.mustache
    team/kmoore/stasis-bridging-channel_events/rest-api/api-docs/events.json

Modified: team/kmoore/stasis-bridging-channel_events/rest-api-templates/asterisk_processor.py
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-bridging-channel_events/rest-api-templates/asterisk_processor.py?view=diff&rev=386858&r1=386857&r2=386858
==============================================================================
--- team/kmoore/stasis-bridging-channel_events/rest-api-templates/asterisk_processor.py (original)
+++ team/kmoore/stasis-bridging-channel_events/rest-api-templates/asterisk_processor.py Mon Apr 29 09:26:17 2013
@@ -155,10 +155,7 @@
                 resource_api.api_declaration.models = \
                     [self.process_model(model, context) for model in \
                         resource_api.api_declaration.models if model.id != "Event"]
-                resource_api.api_declaration.models = \
-                    [model for model in \
-                        resource_api.api_declaration.models if model]
-                    
+
             # Since every API path should start with /[resource], root should
             # have exactly one child.
             if resource_api.root_path.num_children() != 1:

Modified: team/kmoore/stasis-bridging-channel_events/rest-api-templates/stasis_http_resource.h.mustache
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-bridging-channel_events/rest-api-templates/stasis_http_resource.h.mustache?view=diff&rev=386858&r1=386857&r2=386858
==============================================================================
--- team/kmoore/stasis-bridging-channel_events/rest-api-templates/stasis_http_resource.h.mustache (original)
+++ team/kmoore/stasis-bridging-channel_events/rest-api-templates/stasis_http_resource.h.mustache Mon Apr 29 09:26:17 2013
@@ -86,7 +86,7 @@
  * \param blob JSON blob containing the following parameters:
 {{/has_properties}}
 {{#properties}}
- * - {{name}}: {{type}} {{#description}}- {{description}} {{/description}}{{#required}}(required){{/required}}
+ * - {{name}}: {{type}} {{#description}}- {{description}}{{/description}}{{#required}} (required){{/required}}
 {{/properties}}
  *
  * \retval NULL on error
@@ -116,7 +116,7 @@
 {{^is_events}}
  * {{id}}
 {{#properties}}
- * - {{name}}: {{type}} {{#required}}(required){{/required}}
+ * - {{name}}: {{type}}{{#required}} (required){{/required}}
 {{/properties}}
 {{/is_events}}
 {{/models}} */

Modified: team/kmoore/stasis-bridging-channel_events/rest-api/api-docs/events.json
URL: http://svnview.digium.com/svn/asterisk/team/kmoore/stasis-bridging-channel_events/rest-api/api-docs/events.json?view=diff&rev=386858&r1=386857&r2=386858
==============================================================================
--- team/kmoore/stasis-bridging-channel_events/rest-api/api-docs/events.json (original)
+++ team/kmoore/stasis-bridging-channel_events/rest-api/api-docs/events.json Mon Apr 29 09:26:17 2013
@@ -65,6 +65,9 @@
 				"channel_dtmf_received": { "type": "ChannelDtmfReceived" },
 				"channel_dialplan": { "type": "ChannelDialplan" },
 				"channel_caller_id": { "type": "ChannelCallerId" },
+				"channel_userevent": { "type": "ChannelUserevent" },
+				"channel_hangup_request": { "type": "ChannelHangupRequest" },
+				"channel_varset": { "type": "ChannelVarset" },
 				"stasis_end": { "type": "StasisEnd" },
 				"stasis_start": { "type": "StasisStart" }
 			}
@@ -249,7 +252,7 @@
 			"properties": {
 				"cause": {
 					"type": "integer",
-					"description": "Integer representation of the cause of the hangup"
+					"description": "Integer representation of the cause of the hangup."
 				},
 				"soft": {
 					"type": "integer",




More information about the asterisk-commits mailing list