oversip 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3643,6 +3643,30 @@ E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
3643
3643
  5EI=
3644
3644
  -----END CERTIFICATE-----
3645
3645
 
3646
+ Hellenic Academic and Research Institutions RootCA 2011
3647
+ =======================================================
3648
+ -----BEGIN CERTIFICATE-----
3649
+ MIIEMTCCAxmgAwIBAgIBADANBgkqhkiG9w0BAQUFADCBlTELMAkGA1UEBhMCR1IxRDBCBgNVBAoT
3650
+ O0hlbGxlbmljIEFjYWRlbWljIGFuZCBSZXNlYXJjaCBJbnN0aXR1dGlvbnMgQ2VydC4gQXV0aG9y
3651
+ aXR5MUAwPgYDVQQDEzdIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
3652
+ IFJvb3RDQSAyMDExMB4XDTExMTIwNjEzNDk1MloXDTMxMTIwMTEzNDk1MlowgZUxCzAJBgNVBAYT
3653
+ AkdSMUQwQgYDVQQKEztIZWxsZW5pYyBBY2FkZW1pYyBhbmQgUmVzZWFyY2ggSW5zdGl0dXRpb25z
3654
+ IENlcnQuIEF1dGhvcml0eTFAMD4GA1UEAxM3SGVsbGVuaWMgQWNhZGVtaWMgYW5kIFJlc2VhcmNo
3655
+ IEluc3RpdHV0aW9ucyBSb290Q0EgMjAxMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
3656
+ AKlTAOMupvaO+mDYLZU++CwqVE7NuYRhlFhPjz2L5EPzdYmNUeTDN9KKiE15HrcS3UN4SoqS5tdI
3657
+ 1Q+kOilENbgH9mgdVc04UfCMJDGFr4PJfel3r+0ae50X+bOdOFAPplp5kYCvN66m0zH7tSYJnTxa
3658
+ 71HFK9+WXesyHgLacEnsbgzImjeN9/E2YEsmLIKe0HjzDQ9jpFEw4fkrJxIH2Oq9GGKYsFk3fb7u
3659
+ 8yBRQlqD75O6aRXxYp2fmTmCobd0LovUxQt7L/DICto9eQqakxylKHJzkUOap9FNhYS5qXSPFEDH
3660
+ 3N6sQWRstBmbAmNtJGSPRLIl6s5ddAxjMlyNh+UCAwEAAaOBiTCBhjAPBgNVHRMBAf8EBTADAQH/
3661
+ MAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQUppFC/RNhSiOeCKQp5dgTBCPuQSUwRwYDVR0eBEAwPqA8
3662
+ MAWCAy5ncjAFggMuZXUwBoIELmVkdTAGggQub3JnMAWBAy5ncjAFgQMuZXUwBoEELmVkdTAGgQQu
3663
+ b3JnMA0GCSqGSIb3DQEBBQUAA4IBAQAf73lB4XtuP7KMhjdCSk4cNx6NZrokgclPEg8hwAOXhiVt
3664
+ XdMiKahsog2p6z0GW5k6x8zDmjR/qw7IThzh+uTczQ2+vyT+bOdrwg3IBp5OjWEopmr95fZi6hg8
3665
+ TqBTnbI6nOulnJEWtk2C4AwFSKls9cz4y51JtPACpf1wA+2KIaWuE4ZJwzNzvoc7dIsXRSZMFpGD
3666
+ /md9zU1jZ/rzAxKWeAaNsWftjj++n08C9bMJL/NMh98qy5V8AcysNnq/onN694/BtZqhFLKPM58N
3667
+ 7yLcZnuEvUUXBj08yrl3NI/K6s8/MT7jiOOASSXIl7WdmplNsDz4SgCbZN2fOUvRJ9e4
3668
+ -----END CERTIFICATE-----
3669
+
3646
3670
  Actalis Authentication Root CA
3647
3671
  ==============================
3648
3672
  -----BEGIN CERTIFICATE-----
@@ -278,8 +278,6 @@ module OverSIP::Launcher
278
278
  # Create PID file.
279
279
  create_pid_file(options[:pid_file])
280
280
 
281
- log_system_info "reactor running"
282
-
283
281
  # Run the user provided on_initialize method.
284
282
  log_system_info "calling OverSIP::SystemEvents.on_initialize() method..."
285
283
  begin
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 2
8
- TINY = 0
8
+ TINY = 1
9
9
  DEVEL = nil # Set to nil for stable releases.
10
10
  end
11
11
 
@@ -30,6 +30,7 @@ module OverSIP::WebSocket
30
30
  ::OverSIP::SIP::TransportManager.delete_outbound_connection @outbound_flow_token
31
31
 
32
32
  @local_closed = true if cause == ::Errno::ETIMEDOUT
33
+ @local_closed = false if @client_closed
33
34
 
34
35
  if $oversip_debug
35
36
  log_msg = "connection from the TLS tunnel #{remote_desc} "
@@ -38,7 +39,7 @@ module OverSIP::WebSocket
38
39
  log_system_debug log_msg
39
40
  end unless $!
40
41
 
41
- if @state == :websocket
42
+ if @ws_established
42
43
  begin
43
44
  ::OverSIP::WebSocketEvents.on_disconnection self, !@local_closed
44
45
  rescue ::Exception => e
@@ -77,15 +78,15 @@ module OverSIP::WebSocket
77
78
  when :check_http_request
78
79
  check_http_request
79
80
 
80
- when :new_websocket_connection_callback
81
- check_new_websocket_connection_callback
81
+ when :ws_connection_callback
82
+ ws_connection_callback
82
83
 
83
84
  when :accept_ws_handshake
84
85
  accept_ws_handshake
85
86
 
86
87
  when :websocket_frames
88
+ @ws_established = true
87
89
  return false if @buffer.size.zero?
88
-
89
90
  @ws_framing.receive_data
90
91
  false
91
92
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oversip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-04 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine-le
16
- requirement: &18819520 !ruby/object:Gem::Requirement
16
+ requirement: &19116520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.1.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18819520
24
+ version_requirements: *19116520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: iobuffer
27
- requirement: &18819060 !ruby/object:Gem::Requirement
27
+ requirement: &19116060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.1.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18819060
35
+ version_requirements: *19116060
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: em-posixmq
38
- requirement: &18818600 !ruby/object:Gem::Requirement
38
+ requirement: &19115600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.2.3
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *18818600
46
+ version_requirements: *19115600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: em-udns
49
- requirement: &18818140 !ruby/object:Gem::Requirement
49
+ requirement: &19115140 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.3.6
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *18818140
57
+ version_requirements: *19115140
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: escape_utils
60
- requirement: &18587760 !ruby/object:Gem::Requirement
60
+ requirement: &19114680 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 0.2.4
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *18587760
68
+ version_requirements: *19114680
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: term-ansicolor
71
- requirement: &18587300 !ruby/object:Gem::Requirement
71
+ requirement: &19114300 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *18587300
79
+ version_requirements: *19114300
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: posix-spawn
82
- requirement: &18586620 !ruby/object:Gem::Requirement
82
+ requirement: &19113760 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.3.6
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *18586620
90
+ version_requirements: *19113760
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rake
93
- requirement: &18585920 !ruby/object:Gem::Requirement
93
+ requirement: &19113260 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 0.9.2
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *18585920
101
+ version_requirements: *19113260
102
102
  description: ! 'OverSIP is an async SIP proxy/server programmable in Ruby language.
103
103
  Some features of OverSIP are:
104
104
 
@@ -135,86 +135,86 @@ extensions:
135
135
  extra_rdoc_files: []
136
136
  files:
137
137
  - lib/oversip.rb
138
- - lib/oversip/posix_mq.rb
139
- - lib/oversip/proxies_config.rb
140
- - lib/oversip/utils.rb
141
- - lib/oversip/syslog.rb
142
- - lib/oversip/errors.rb
138
+ - lib/oversip/fiber_pool.rb
143
139
  - lib/oversip/master_process.rb
144
- - lib/oversip/default_server.rb
145
- - lib/oversip/tls.rb
146
- - lib/oversip/config_validators.rb
147
- - lib/oversip/version.rb
148
140
  - lib/oversip/logger.rb
149
- - lib/oversip/fiber_pool.rb
150
- - lib/oversip/syslogger_process.rb
151
- - lib/oversip/system_callbacks.rb
152
141
  - lib/oversip/config.rb
153
142
  - lib/oversip/launcher.rb
143
+ - lib/oversip/default_server.rb
144
+ - lib/oversip/config_validators.rb
145
+ - lib/oversip/errors.rb
146
+ - lib/oversip/system_callbacks.rb
147
+ - lib/oversip/posix_mq.rb
148
+ - lib/oversip/syslogger_process.rb
149
+ - lib/oversip/version.rb
150
+ - lib/oversip/proxies_config.rb
151
+ - lib/oversip/syslog.rb
152
+ - lib/oversip/tls.rb
153
+ - lib/oversip/utils.rb
154
154
  - lib/oversip/ruby_ext/eventmachine.rb
155
- - lib/oversip/sip/rfc3263.rb
155
+ - lib/oversip/sip/core.rb
156
156
  - lib/oversip/sip/sip.rb
157
- - lib/oversip/sip/listeners.rb
158
- - lib/oversip/sip/proxy.rb
159
- - lib/oversip/sip/server_transaction.rb
160
- - lib/oversip/sip/tags.rb
161
157
  - lib/oversip/sip/request.rb
162
- - lib/oversip/sip/timers.rb
163
158
  - lib/oversip/sip/message_processor.rb
164
- - lib/oversip/sip/response.rb
165
159
  - lib/oversip/sip/transport_manager.rb
166
- - lib/oversip/sip/core.rb
167
- - lib/oversip/sip/client_transaction.rb
168
- - lib/oversip/sip/message.rb
169
160
  - lib/oversip/sip/constants.rb
161
+ - lib/oversip/sip/timers.rb
162
+ - lib/oversip/sip/listeners.rb
163
+ - lib/oversip/sip/message.rb
170
164
  - lib/oversip/sip/launcher.rb
171
- - lib/oversip/sip/listeners/tls_server.rb
165
+ - lib/oversip/sip/response.rb
166
+ - lib/oversip/sip/server_transaction.rb
167
+ - lib/oversip/sip/proxy.rb
168
+ - lib/oversip/sip/tags.rb
169
+ - lib/oversip/sip/rfc3263.rb
170
+ - lib/oversip/sip/client_transaction.rb
171
+ - lib/oversip/sip/listeners/ipv4_tcp_client.rb
172
172
  - lib/oversip/sip/listeners/udp_connection.rb
173
- - lib/oversip/sip/listeners/connection.rb
174
- - lib/oversip/sip/listeners/ipv4_tls_server.rb
173
+ - lib/oversip/sip/listeners/tls_tunnel_connection.rb
174
+ - lib/oversip/sip/listeners/tcp_server.rb
175
+ - lib/oversip/sip/listeners/tls_server.rb
175
176
  - lib/oversip/sip/listeners/ipv6_udp_server.rb
177
+ - lib/oversip/sip/listeners/ipv6_tls_server.rb
178
+ - lib/oversip/sip/listeners/ipv4_tcp_server.rb
176
179
  - lib/oversip/sip/listeners/ipv6_tcp_server.rb
177
180
  - lib/oversip/sip/listeners/ipv4_udp_server.rb
178
- - lib/oversip/sip/listeners/tcp_server.rb
179
- - lib/oversip/sip/listeners/tcp_client.rb
180
- - lib/oversip/sip/listeners/tls_client.rb
181
- - lib/oversip/sip/listeners/ipv4_tcp_client.rb
182
- - lib/oversip/sip/listeners/ipv6_tcp_client.rb
183
- - lib/oversip/sip/listeners/ipv4_tcp_server.rb
184
181
  - lib/oversip/sip/listeners/tls_tunnel_server.rb
185
- - lib/oversip/sip/listeners/ipv4_tls_client.rb
186
- - lib/oversip/sip/listeners/ipv6_tls_server.rb
187
- - lib/oversip/sip/listeners/ipv6_tls_tunnel_server.rb
188
- - lib/oversip/sip/listeners/tcp_connection.rb
189
182
  - lib/oversip/sip/listeners/ipv6_tls_client.rb
190
183
  - lib/oversip/sip/listeners/ipv4_tls_tunnel_server.rb
191
- - lib/oversip/sip/listeners/tls_tunnel_connection.rb
184
+ - lib/oversip/sip/listeners/tcp_connection.rb
185
+ - lib/oversip/sip/listeners/ipv6_tcp_client.rb
186
+ - lib/oversip/sip/listeners/connection.rb
187
+ - lib/oversip/sip/listeners/ipv4_tls_client.rb
188
+ - lib/oversip/sip/listeners/tls_client.rb
189
+ - lib/oversip/sip/listeners/ipv4_tls_server.rb
190
+ - lib/oversip/sip/listeners/tcp_client.rb
191
+ - lib/oversip/sip/listeners/ipv6_tls_tunnel_server.rb
192
192
  - lib/oversip/sip/grammar/uri.rb
193
193
  - lib/oversip/sip/grammar/name_addr.rb
194
- - lib/oversip/websocket/listeners.rb
195
- - lib/oversip/websocket/http_request.rb
196
194
  - lib/oversip/websocket/ws_framing.rb
197
- - lib/oversip/websocket/websocket.rb
195
+ - lib/oversip/websocket/http_request.rb
198
196
  - lib/oversip/websocket/constants.rb
197
+ - lib/oversip/websocket/listeners.rb
199
198
  - lib/oversip/websocket/launcher.rb
200
199
  - lib/oversip/websocket/ws_sip_app.rb
201
- - lib/oversip/websocket/listeners/ws_server.rb
202
- - lib/oversip/websocket/listeners/ipv4_wss_server.rb
203
- - lib/oversip/websocket/listeners/connection.rb
204
- - lib/oversip/websocket/listeners/ipv6_ws_server.rb
200
+ - lib/oversip/websocket/websocket.rb
205
201
  - lib/oversip/websocket/listeners/ipv4_wss_tunnel_server.rb
206
202
  - lib/oversip/websocket/listeners/ipv6_wss_tunnel_server.rb
207
- - lib/oversip/websocket/listeners/wss_server.rb
208
- - lib/oversip/websocket/listeners/ipv4_ws_server.rb
209
203
  - lib/oversip/websocket/listeners/ipv6_wss_server.rb
204
+ - lib/oversip/websocket/listeners/ipv4_ws_server.rb
205
+ - lib/oversip/websocket/listeners/ipv6_ws_server.rb
206
+ - lib/oversip/websocket/listeners/connection.rb
207
+ - lib/oversip/websocket/listeners/ipv4_wss_server.rb
208
+ - lib/oversip/websocket/listeners/ws_server.rb
210
209
  - lib/oversip/websocket/listeners/wss_tunnel_server.rb
210
+ - lib/oversip/websocket/listeners/wss_server.rb
211
211
  - lib/oversip/modules/outbound_mangling.rb
212
212
  - lib/oversip/modules/user_assertion.rb
213
213
  - ext/common/ruby_c_util.h
214
214
  - ext/common/c_util.h
215
215
  - ext/sip_parser/extconf.rb
216
- - ext/sip_parser/sip_parser.h
217
216
  - ext/sip_parser/ext_help.h
217
+ - ext/sip_parser/sip_parser.h
218
218
  - ext/sip_parser/common_headers.h
219
219
  - ext/sip_parser/sip_parser.c
220
220
  - ext/sip_parser/sip_parser_ruby.c
@@ -222,15 +222,15 @@ files:
222
222
  - ext/stun/ext_help.h
223
223
  - ext/stun/stun_ruby.c
224
224
  - ext/utils/extconf.rb
225
- - ext/utils/haproxy_protocol.h
226
225
  - ext/utils/ip_utils.h
227
226
  - ext/utils/ext_help.h
228
- - ext/utils/utils_ruby.h
229
227
  - ext/utils/outbound_utils.h
228
+ - ext/utils/haproxy_protocol.h
229
+ - ext/utils/utils_ruby.h
230
+ - ext/utils/ip_utils.c
230
231
  - ext/utils/haproxy_protocol.c
231
232
  - ext/utils/utils_ruby.c
232
233
  - ext/utils/outbound_utils.c
233
- - ext/utils/ip_utils.c
234
234
  - ext/websocket_http_parser/extconf.rb
235
235
  - ext/websocket_http_parser/ext_help.h
236
236
  - ext/websocket_http_parser/ws_http_parser.h
@@ -242,23 +242,23 @@ files:
242
242
  - ext/websocket_framing_utils/ws_framing_utils_ruby.c
243
243
  - ext/stud/extconf.rb
244
244
  - thirdparty/stud/stud.tar.gz
245
- - etc/oversip.conf
246
245
  - etc/proxies.conf
246
+ - etc/oversip.conf
247
247
  - etc/server.rb
248
+ - etc/tls/upgrade-cacert.sh
248
249
  - etc/tls/demo-tls.oversip.net.crt
249
250
  - etc/tls/demo-tls.oversip.net.key
250
- - etc/tls/upgrade-cacert.sh
251
251
  - etc/tls/ca/cacert.pem
252
- - etc/tls/utils/get-sip-identities.rb
253
252
  - etc/tls/utils/create-cert.rb
253
+ - etc/tls/utils/get-sip-identities.rb
254
254
  - Rakefile
255
255
  - README.md
256
256
  - AUTHORS
257
257
  - LICENSE
258
258
  - test/oversip_test_helper.rb
259
+ - test/test_uri.rb
259
260
  - test/test_sip_parser.rb
260
261
  - test/test_http_parser.rb
261
- - test/test_uri.rb
262
262
  - bin/oversip
263
263
  homepage: http://www.oversip.net
264
264
  licenses: []
@@ -286,7 +286,7 @@ specification_version: 3
286
286
  summary: OverSIP (the SIP framework you dreamed about)
287
287
  test_files:
288
288
  - test/oversip_test_helper.rb
289
+ - test/test_uri.rb
289
290
  - test/test_sip_parser.rb
290
291
  - test/test_http_parser.rb
291
- - test/test_uri.rb
292
292
  has_rdoc: false