freeswitcher 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fsr/app/callcenter.rb +21 -0
- data/lib/fsr/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,21 @@
|
|
1
|
+
require "fsr/app"
|
2
|
+
module FSR
|
3
|
+
module App
|
4
|
+
class Callcenter < Application
|
5
|
+
attr_reader :queue
|
6
|
+
def initialize(queue)
|
7
|
+
@queue = queue
|
8
|
+
end
|
9
|
+
|
10
|
+
def arguments
|
11
|
+
[queue]
|
12
|
+
end
|
13
|
+
|
14
|
+
def sendmsg
|
15
|
+
"call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join(" ")]
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
register(:callcenter, CallCenter)
|
20
|
+
end
|
21
|
+
end
|
data/lib/fsr/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 7
|
9
|
+
version: 0.5.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jayson Vaughn
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- lib/fsr/app/answer.rb
|
61
61
|
- lib/fsr/app/bind_meta_app.rb
|
62
62
|
- lib/fsr/app/bridge.rb
|
63
|
+
- lib/fsr/app/callcenter.rb
|
63
64
|
- lib/fsr/app/conference.rb
|
64
65
|
- lib/fsr/app/execute_app.rb
|
65
66
|
- lib/fsr/app/fifo.rb
|