oversip 2.0.0 → 2.0.1

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: 2ffc558d45b3c66904ddf72623d171b91d5e7b96
4
- data.tar.gz: 489269bf59afa251db14f087ed07a38d7ff29dd5
3
+ metadata.gz: f65916dfa8153aa9a92e78a49c4442add2d021a0
4
+ data.tar.gz: 314cc666d20d6b82ba7a20f1db73bf3e73f0ed1f
5
5
  SHA512:
6
- metadata.gz: 78d3f9a887a7d42ffdb8d2de56a26c27a213fa258df5ca8fcf5ec08b99a5769f6690dc3383d6bf1e12b4e88286181438f5901cbd15493328a2e12ed8df3da2b0
7
- data.tar.gz: 6798f11724f21433d7fe722aa20acff3b73777b9aa8861e55791c9081acec0bef2620bc671b23cb7603e8fee8a5d6db81545a5f7223ac1eac9f2532797ca8a5c
6
+ metadata.gz: f9bb28e786e012b2a9886cdb3fe2612c2cd42b0eb424931f7c2d9d9d9bb47847fb6888a6a92d01878f7eaa45e1d557bc8e017ad462b480c9a332df3edca19d29
7
+ data.tar.gz: 211f86a78662b22ffab3f4de10324a7993331a12c0376d81a672b13819fe8bace58c55a46b51ba9aa7b18440e211be8be07ceab9ec2a7aaa5221c2f372c0ee36
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <a href="http://www.oversip.net"><img src="http://www.oversip.net/images/oversip-banner.png"/></a>
1
+ <p align="center"><a href="http://oversip.net"><img src="http://oversip.net/images/oversip-banner.png"/></a></p>
2
2
 
3
3
  [![Build Status](https://secure.travis-ci.org/versatica/OverSIP.png?branch=master)](http://travis-ci.org/versatica/OverSIP)
4
4
 
@@ -9,8 +9,9 @@
9
9
 
10
10
  ## Overview
11
11
 
12
- OverSIP is a powerful and flexible SIP proxy & server by the authors of [draft-ietf-sipcore-sip-websocket](http://tools.ietf.org/html/draft-ietf-sipcore-sip-websocket) (*The WebSocket Protocol as a Transport for SIP*):
12
+ OverSIP is a powerful and flexible SIP proxy & server by the authors of [RFC 7118](http://tools.ietf.org/html/rfc7118) (*The WebSocket Protocol as a Transport for SIP*):
13
13
 
14
+ * Works on Linux/BSD/OSX
14
15
  * Fully asynchronous event-based design, never block!
15
16
  * Enjoy coding your SIP logic in Ruby language, feel free to code whatever you need!
16
17
  * Fast: core and message parsers written in C language
@@ -11,6 +11,7 @@ module OverSIP
11
11
 
12
12
  @proxy_configuration = {
13
13
  :do_record_routing => true,
14
+ :record_route_all => false,
14
15
  :use_dns => true,
15
16
  :use_dns_cache => true,
16
17
  :dns_cache_time => 300,
@@ -30,6 +31,7 @@ module OverSIP
30
31
 
31
32
  PROXY_CONFIG_VALIDATIONS = {
32
33
  :do_record_routing => :boolean,
34
+ :record_route_all => :boolean,
33
35
  :use_dns => :boolean,
34
36
  :use_dns_cache => :boolean,
35
37
  :dns_cache_time => [ :fixnum, [ :greater_equal_than, 300 ] ],
@@ -176,9 +178,12 @@ module OverSIP
176
178
 
177
179
  # Add a hash for the blacklist.
178
180
  @proxies[proxy][:blacklist] = {}
181
+
182
+ # Only allow record routing for all requsts if record routing is enabled
183
+ @proxies[proxy][:record_route_all] = false unless @proxies[proxy][:do_record_routing]
179
184
  end
180
185
  end
181
186
 
182
187
  end
183
188
 
184
- end
189
+ end
@@ -187,7 +187,7 @@ module OverSIP::SIP
187
187
  add_rr_path = false
188
188
 
189
189
  # NOTE: As per RFC 6665 the proxy MUST add Record-Route to in-dialog NOTIFY's.
190
- if (@request.initial? and @request.record_routing_aware?) or @request.sip_method == :NOTIFY
190
+ if (@request.initial? and @request.record_routing_aware?) or @request.sip_method == :NOTIFY or @conf[:record_route_all]
191
191
  do_record_routing = @conf[:do_record_routing]
192
192
 
193
193
  # Request has no previous RR/Path and current proxy performs record-routing.
@@ -270,7 +270,7 @@ module OverSIP::SIP
270
270
  @request.in_rr = :rr
271
271
  # The request comes via UDP or via a connection made by the client.
272
272
  if @request.connection.class.outbound_listener?
273
- @request.insert_header "Record-Route", @request.connection.class.record_route
273
+ @request.insert_header "Record-Route", "<sip:" << @request.connection_outbound_flow_token << @request.connection.class.outbound_record_route_fragment
274
274
  # The request comes via a TCP/TLS connection made by OverSIP.
275
275
  else
276
276
  @request.insert_header "Record-Route", @request.connection.record_route
@@ -321,4 +321,4 @@ module OverSIP::SIP
321
321
 
322
322
  end # class Proxy
323
323
 
324
- end
324
+ end
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 2
7
7
  MINOR = 0
8
- TINY = 0
8
+ TINY = 1
9
9
  DEVEL = nil # Set to nil for stable releases.
10
10
  end
11
11
 
@@ -14,7 +14,7 @@ module OverSIP
14
14
  VERSION << ".#{Version::DEVEL}" if Version::DEVEL
15
15
  AUTHOR = "Inaki Baz Castillo"
16
16
  AUTHOR_EMAIL = "ibc@aliax.net"
17
- HOMEPAGE = "http://www.oversip.net"
17
+ HOMEPAGE = "http://oversip.net"
18
18
  year = "2012-2014"
19
19
  DESCRIPTION = "#{PROGRAM_NAME} #{VERSION}\n#{HOMEPAGE}\n#{year}, #{AUTHOR} <#{AUTHOR_EMAIL}>"
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oversip
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Inaki Baz Castillo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2015-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine-le
@@ -280,7 +280,7 @@ files:
280
280
  - test/test_sip_uri_parser.rb
281
281
  - test/test_uri.rb
282
282
  - thirdparty/stud/stud.tar.gz
283
- homepage: http://www.oversip.net
283
+ homepage: http://oversip.net
284
284
  licenses:
285
285
  - MIT
286
286
  metadata: {}