freeswitcher 0.6.7 → 0.6.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,9 +57,8 @@ module FSR
57
57
  end
58
58
 
59
59
  def authorize_and_register_for_events
60
- FSR::Log.info "Connection established. Authorizing..."
60
+ FSR::Log.info "Establishing Connection #{@host}."
61
61
  say("auth #{@auth}")
62
- FSR::Log.info "#{@host} Connected."
63
62
  before_session
64
63
  end
65
64
 
@@ -80,6 +79,7 @@ module FSR
80
79
  hash_header = headers_2_hash(header)
81
80
  case hash_header[:content_type]
82
81
  when "command/reply"
82
+ FSR::Log.info "#{@host} Authorized!" if hash_header[:reply_text] == "+OK accepted"
83
83
  return handle_reply(header, content)
84
84
  when "text/event-plain"
85
85
  hash_content = headers_2_hash(content).merge(:body => content.split("\n\n",2)[1].to_s)
@@ -87,6 +87,7 @@ module FSR
87
87
  require "json"
88
88
  hash_content = JSON.parse(content)
89
89
  when "auth/request"
90
+ FSR::Log.info "#{@host} Authorizing..."
90
91
  return
91
92
  else
92
93
  handle_request(header, content)
@@ -165,7 +166,6 @@ module FSR
165
166
  # param content The content of the data
166
167
  # return [header, content]
167
168
  def handle_reply(header, content)
168
- [header, content]
169
169
  end
170
170
 
171
171
  # add_event_hook adds an Event to listen for. When that Event is triggered, it will call the defined block
data/lib/fsr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FSR
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 7
9
- version: 0.6.7
8
+ - 8
9
+ version: 0.6.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jayson Vaughn