sipgate_io 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b13b762011c328c801c9a905c793b6eaea62c4cc
4
- data.tar.gz: b3bc9206cacb88eeed3064a00b547fad894cd61e
3
+ metadata.gz: 57d41a830962b9b073c635138f99a9cae29946bb
4
+ data.tar.gz: 7654d3ddb97dfb17f81940b96a589a030646a96f
5
5
  SHA512:
6
- metadata.gz: fecd57fcc0d9a2e27bbc258befdc98ee974f39420d2061786b412db19179c333d3ed6cbeeddd723ed19cd1509e56db5b16c2a6cf91038ab1612f71c6895e70b3
7
- data.tar.gz: 9db396cfca44e8710670c2024ff91c9ab2c84664d1f44b3f3479a6d1daf68c21b43fd34fe6e64b9f5cfd1b747c17b619ad01ca68cacbce77afbe336125402809
6
+ metadata.gz: 65de1ef4b72372e87662afc51e24ada4af3f01dde8ecb0cd72d58cab4a6eb573bfe98ecf589232e74eb443d90397faef6cb9fb0e5783df71282481603d8e4e1a
7
+ data.tar.gz: 312b2737ed8d889a78def52e10a053b027002c1e9b4aa0751fab4b76422fb6ab7db4f94034d398e8bd040406847de92a7d4699ed36b8b30e733399a9d9b5194f
data/config/routes.rb CHANGED
@@ -1,4 +1,2 @@
1
1
  SipgateIo::Engine.routes.draw do
2
- post 'events/create'
3
-
4
2
  end
@@ -1,5 +1,10 @@
1
1
  module SipgateIo
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace SipgateIo
4
+ initializer 'sipgate_io.routes',
5
+ after: 'action_dispatch.prepare_dispatcher' do |app|
6
+
7
+ ActionDispatch::Routing::Mapper.send :include, SipgateIo::RouteExtensions
8
+ end
4
9
  end
5
10
  end
@@ -0,0 +1,7 @@
1
+ module SipgateIo
2
+ module RouteExtensions
3
+ def mount_sipgate_io(path='/sipgate_io')
4
+ post path => 'sipgate_io/events#create', as: :sipgate_io
5
+ end
6
+ end
7
+ end
@@ -1,3 +1,3 @@
1
1
  module SipgateIo
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/sipgate_io.rb CHANGED
@@ -4,6 +4,7 @@ require "sipgate_io/new_call"
4
4
  require "sipgate_io/answer"
5
5
  require "sipgate_io/dtmf"
6
6
  require "sipgate_io/hangup"
7
+ require "sipgate_io/route_extension"
7
8
  require "sipgate_io/configuration"
8
9
  require "sipgate_io/xml_response"
9
10
 
@@ -1,4 +1,3 @@
1
1
  Rails.application.routes.draw do
2
-
3
- mount SipgateIo::Engine => "/sipgate_io"
2
+ mount_sipgate_io
4
3
  end
@@ -16,3 +16,93 @@ Started POST "/sipgate_io/events/create" for 217.116.118.254 at 2016-02-11 13:20
16
16
  Processing by SipgateIo::EventsController#create as XML
17
17
  Parameters: {"event"=>"newCall", "direction"=>"out", "from"=>"4915792303200", "to"=>"491624275122", "callId"=>"7482429611629850748", "user"=>["Christian Schmidt"]}
18
18
  Completed 200 OK in 4ms (Views: 0.6ms | ActiveRecord: 0.0ms)
19
+
20
+
21
+ Started POST "/sipgate_io" for 217.116.118.254 at 2016-02-12 21:38:16 +0100
22
+
23
+ ActionController::RoutingError (No route matches [POST] "/sipgate_io"):
24
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
25
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
26
+ railties (4.2.5.1) lib/rails/rack/logger.rb:38:in `call_app'
27
+ railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `block in call'
28
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
29
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:26:in `tagged'
30
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `tagged'
31
+ railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `call'
32
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
33
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
34
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
35
+ activesupport (4.2.5.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
36
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
37
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/static.rb:116:in `call'
38
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
39
+ railties (4.2.5.1) lib/rails/engine.rb:518:in `call'
40
+ railties (4.2.5.1) lib/rails/application.rb:165:in `call'
41
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
42
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
43
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
44
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
45
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
46
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
47
+
48
+
49
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.9ms)
50
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
51
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
52
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (14.4ms)
53
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (13.4ms)
54
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (116.6ms)
55
+
56
+
57
+ Started POST "/sipgate_io/events/create" for 217.116.118.254 at 2016-02-12 21:39:05 +0100
58
+ Processing by SipgateIo::EventsController#create as XML
59
+ Parameters: {"event"=>"newCall", "direction"=>"out", "from"=>"4915792303200", "to"=>"498003303000", "callId"=>"4989247263841388750", "user"=>["Christian Schmidt"]}
60
+ Completed 200 OK in 4ms (Views: 0.2ms | ActiveRecord: 0.0ms)
61
+
62
+
63
+ Started POST "/sipgate_io" for 217.116.118.254 at 2016-02-12 21:44:52 +0100
64
+ Processing by SipgateIo::EventsController#create as XML
65
+ Parameters: {"event"=>"newCall", "direction"=>"out", "from"=>"4915792303200", "to"=>"498003303000", "callId"=>"6499012522432278276", "user"=>["Christian Schmidt"]}
66
+ Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
67
+
68
+
69
+ Started POST "/sipgate_io" for 217.116.118.254 at 2016-02-12 21:53:15 +0100
70
+
71
+ ActionController::RoutingError (No route matches [POST] "/sipgate_io"):
72
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
73
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
74
+ railties (4.2.5.1) lib/rails/rack/logger.rb:38:in `call_app'
75
+ railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `block in call'
76
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
77
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:26:in `tagged'
78
+ activesupport (4.2.5.1) lib/active_support/tagged_logging.rb:68:in `tagged'
79
+ railties (4.2.5.1) lib/rails/rack/logger.rb:20:in `call'
80
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
81
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
82
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
83
+ activesupport (4.2.5.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
84
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
85
+ actionpack (4.2.5.1) lib/action_dispatch/middleware/static.rb:116:in `call'
86
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
87
+ railties (4.2.5.1) lib/rails/engine.rb:518:in `call'
88
+ railties (4.2.5.1) lib/rails/application.rb:165:in `call'
89
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
90
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
91
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
92
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
93
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
94
+ /Users/christian/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
95
+
96
+
97
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.7ms)
98
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.1ms)
99
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_route.html.erb (0.1ms)
100
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/routes/_table.html.erb (12.7ms)
101
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (9.6ms)
102
+ Rendered /Users/christian/.rvm/gems/ruby-2.2.3/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (102.2ms)
103
+
104
+
105
+ Started POST "/sipgate_io" for 217.116.118.254 at 2016-02-12 21:53:57 +0100
106
+ Processing by SipgateIo::EventsController#create as XML
107
+ Parameters: {"event"=>"newCall", "direction"=>"out", "from"=>"4915792303200", "to"=>"498003303000", "callId"=>"2400977796991724418", "user"=>["Christian Schmidt"]}
108
+ Completed 200 OK in 5ms (Views: 0.2ms | ActiveRecord: 0.0ms)