freeswitcher 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,6 +64,10 @@ module FSR
64
64
 
65
65
  private :before_session
66
66
 
67
+ def handle_request(header, content)
68
+ false
69
+ end
70
+
67
71
  # receive_request is the callback method when data is recieved from the socket
68
72
  #
69
73
  # param header headers from standard Header and Content protocol
@@ -81,7 +85,7 @@ module FSR
81
85
  when "auth/request"
82
86
  return
83
87
  else
84
- FSR::Log.warn "Unhandled request (#{header}, #{content})"
88
+ FSR::Log.warn "Unhandled request (#{header}, #{content})" unless handle_request(header, content)
85
89
  return
86
90
  end
87
91
  hash_content ||= {}
@@ -15,11 +15,7 @@ module FSR
15
15
 
16
16
  def self.from_string(dtmf)
17
17
  dtmf.each_char.map { |char|
18
- if digit = MAP[MAP.keys.detect { |k| k.include? char }]
19
- digit
20
- else
21
- char
22
- end
18
+ MAP[MAP.keys.detect { |k| k.include? char }] || char
23
19
  }.join
24
20
  end
25
21
  end
data/lib/fsr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module FSR
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 6
8
- - 1
9
- version: 0.6.1
8
+ - 2
9
+ version: 0.6.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jayson Vaughn
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2011-02-24 00:00:00 -06:00
20
+ date: 2011-02-25 00:00:00 -06:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency