Skip to content

Commit

Permalink
Add CoreShowChannels as a ManagerInterface CAUSAL_EVENT.
Browse files Browse the repository at this point in the history
We need to identify the rest of the CAUSAL_EVENTS, this list is probably not complete....
  • Loading branch information
bklang committed Jul 29, 2010
1 parent 70de4ac commit f724bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adhearsion/voip/asterisk/manager_interface.rb
Expand Up @@ -29,7 +29,7 @@ module Manager
#
class ManagerInterface

CAUSAL_EVENT_NAMES = ["queuestatus", "sippeers", "parkedcalls", "status", "dahdishowchannels"] unless defined? CAUSAL_EVENT_NAMES
CAUSAL_EVENT_NAMES = ["queuestatus", "sippeers", "parkedcalls", "status", "dahdishowchannels", "coreshowchannels"] unless defined? CAUSAL_EVENT_NAMES

class << self

Expand Down Expand Up @@ -70,7 +70,7 @@ def causal_event_terminator_name_for(action_name)
return nil unless has_causal_events?(action_name)
action_name = action_name.to_s.downcase
case action_name
when "queuestatus", 'parkedcalls', "status"
when "queuestatus", "parkedcalls", "status", "coreshowchannels"
action_name + "complete"
when "sippeers"
"peerlistcomplete"
Expand Down

0 comments on commit f724bdb

Please sign in to comment.