<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,6 +6,6 @@
   - manager_interface
   - before_call
   - failed_call
-  - call_hangup
+  - hungup_call
 
-# Note: This file is valid YAML for programatic parsing.
\ No newline at end of file
+# Note: This file is valid YAML for programatic parsing.</diff>
      <filename>EVENTS</filename>
    </modified>
    <modified>
      <diff>@@ -9,4 +9,4 @@ port: 61613
 
 # subscriptions:
 #   - start_call
-#   - hangup_call
+#   - hungup_call</diff>
      <filename>app_generators/ahn/templates/components/disabled/stomp_gateway/stomp_gateway.yml</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,7 @@
 # - events.shutdown
 # - events.asterisk.before_call
 # - events.asterisk.failed_call
-# - events.asterisk.call_hangup
+# - events.asterisk.hungup_call
 #
 #
 # Note: events are mostly for components to register and expose to you.</diff>
      <filename>app_generators/ahn/templates/events.rb</filename>
    </modified>
    <modified>
      <diff>@@ -34,8 +34,8 @@ module Adhearsion
               end
             rescue HungupExtensionCallException =&gt; hungup_call
               begin
-                ahn_log.agi &quot;Received \&quot;h\&quot; meta-call. Executing /asterisk/call_hangup event callbacks.&quot;
-                Events.trigger [:asterisk, :call_hangup], hungup_call.call
+                ahn_log.agi &quot;Received \&quot;h\&quot; meta-call. Executing /asterisk/hungup_call event callbacks.&quot;
+                Events.trigger [:asterisk, :hungup_call], hungup_call.call
                 call.hangup!
               rescue =&gt; e
                 ahn_log.agi.error e
@@ -78,4 +78,4 @@ module Adhearsion
       end
     end
   end
-end
\ No newline at end of file
+end</diff>
      <filename>lib/adhearsion/voip/asterisk/agi_server.rb</filename>
    </modified>
    <modified>
      <diff>@@ -63,14 +63,14 @@ context &quot;The AGI server's serve() method&quot; do
     }.should.throw :triggered
   end
   
-  test 'should execute the call_hangup event when a HungupExtensionCallException is raised' do
+  test 'should execute the hungup_call event when a HungupExtensionCallException is raised' do
     call_mock = flexmock 'a bogus call', :hungup_call? =&gt; true, :variables =&gt; {:extension =&gt; &quot;h&quot;}, :unique_identifier =&gt; &quot;X&quot;
     mock_env  = flexmock &quot;A mock execution environment which gets passed along in the HungupExtensionCallException&quot;
     
     stub_confirmation_manager!
     flexstub(Adhearsion).should_receive(:receive_call_from).once.and_return(call_mock)
     flexmock(Adhearsion::DialPlan::Manager).should_receive(:handle).once.and_raise Adhearsion::HungupExtensionCallException.new(mock_env)
-    flexmock(Adhearsion::Events).should_receive(:trigger).once.with([:asterisk, :call_hangup], mock_env).and_throw :hungup_call
+    flexmock(Adhearsion::Events).should_receive(:trigger).once.with([:asterisk, :hungup_call], mock_env).and_throw :hungup_call
     
     the_following_code { server.serve nil }.should.throw :hungup_call
   end</diff>
      <filename>spec/voip/asterisk/test_agi_server.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6d622a4dcb52cfc18b94706b514ec21b6bf9af2e</id>
    </parent>
  </parents>
  <author>
    <name>Jayson Vaughn</name>
    <email>vaughn.jayson@gmail.com</email>
  </author>
  <url>http://github.com/jicksta/adhearsion/commit/92daacafbf6bafd4f81abd3f6b96bf6099072d89</url>
  <id>92daacafbf6bafd4f81abd3f6b96bf6099072d89</id>
  <committed-date>2009-01-26T14:38:00-08:00</committed-date>
  <authored-date>2009-01-26T14:38:00-08:00</authored-date>
  <message>Modified adhearsion so hungup_call event works.
  1.  Could not find &quot;/asterisk/call_hangup&quot; in the namespace registry. Did you register it yet? (Theatre::NamespaceNotFound)
      * You get this if you use the example in events.rb from the app_generator.
  2. &quot;lib/adhearsion/events_support.rb&quot; line 32 the namespace is defined as /asterisk/hungup_call
      * The other events are labeled ' before_call', 'after_call' and so on; I figured hungup_call is what jicksta wants
  3. If you use the following example, it will not actually be ran.

     events.asterisk.hungup_call.each do |call|
       ahn_log &quot;#{Time.now} Hung up call&quot;
     end

  4.  Changed to Events.trigger [:asterisk, :hungup_call], hungup_call.call in /lib/adhearsion/voip/asterisk/agi_server.rb
  5.  Changed the templates to reflect events.asterisk.hungup_call
  6.  Changed the spec tests to match</message>
  <tree>2d1b50d475f5440b8983bfdfe66487ae74bd0e4c</tree>
  <committer>
    <name>Jayson Vaughn</name>
    <email>vaughn.jayson@gmail.com</email>
  </committer>
</commit>
