freeswitcher 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fsr/app/callcenter.rb +1 -1
- data/lib/fsr/version.rb +1 -1
- data/spec/fsr/app/callcenter.rb +11 -0
- data/spec/fsr/loading.rb +1 -1
- metadata +4 -2
data/lib/fsr/app/callcenter.rb
CHANGED
data/lib/fsr/version.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec/helper'
|
2
|
+
require "fsr/app"
|
3
|
+
FSR::App.load_application("callcenter")
|
4
|
+
|
5
|
+
describe "Testing FSR::App::Callcenter" do
|
6
|
+
it "Sends the call to callcenter" do
|
7
|
+
callcenter = FSR::App::Callcenter.new("support@default")
|
8
|
+
callcenter.sendmsg.should == "call-command: execute\nexecute-app-name: callcenter\nexecute-app-arg: support@default\nevent-lock:true\n\n"
|
9
|
+
end
|
10
|
+
|
11
|
+
end
|
data/spec/fsr/loading.rb
CHANGED
@@ -4,7 +4,7 @@ require 'spec/helper'
|
|
4
4
|
describe "Testing FSR module loading methods" do
|
5
5
|
# When you add applications you must modify the expected apps_loaded behavior
|
6
6
|
it "Loads all applications" do
|
7
|
-
all_apps = [:play_and_get_digits, :uuid_dump, :uuid_setvar, :uuid_getvar, :read, :set, :transfer, :speak, :fs_sleep, :playback, :answer, :fifo, :bridge, :hangup, :conference, :fs_break, :log, :limit, :bind_meta_app, :execute_app]
|
7
|
+
all_apps = [:play_and_get_digits, :uuid_dump, :uuid_setvar, :uuid_getvar, :read, :set, :transfer, :speak, :fs_sleep, :playback, :answer, :fifo, :bridge, :hangup, :conference, :fs_break, :log, :limit, :bind_meta_app, :execute_app, :callcenter]
|
8
8
|
# Add any apps which will load to this set
|
9
9
|
apps_loaded = FSR.load_all_applications
|
10
10
|
apps_loaded.kind_of?(Array).should == true
|
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
|
+
- 8
|
9
|
+
version: 0.5.8
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jayson Vaughn
|
@@ -134,6 +134,7 @@ files:
|
|
134
134
|
- spec/fsr/app/answer.rb
|
135
135
|
- spec/fsr/app/bind_meta_app.rb
|
136
136
|
- spec/fsr/app/bridge.rb
|
137
|
+
- spec/fsr/app/callcenter.rb
|
137
138
|
- spec/fsr/app/conference.rb
|
138
139
|
- spec/fsr/app/execute_app.rb
|
139
140
|
- spec/fsr/app/fifo.rb
|
@@ -378,6 +379,7 @@ test_files:
|
|
378
379
|
- spec/fsr/app/answer.rb
|
379
380
|
- spec/fsr/app/bind_meta_app.rb
|
380
381
|
- spec/fsr/app/bridge.rb
|
382
|
+
- spec/fsr/app/callcenter.rb
|
381
383
|
- spec/fsr/app/conference.rb
|
382
384
|
- spec/fsr/app/execute_app.rb
|
383
385
|
- spec/fsr/app/fifo.rb
|