oversip 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  Name: OverSIP
2
2
  Maintainer: Iñaki Baz Castillo <ibc@aliax.net>
3
- Copyright (c) 2012 Iñaki Baz Castillo <ibc@aliax.net>
3
+ Copyright (c) 2013 Iñaki Baz Castillo <ibc@aliax.net>
4
4
 
5
5
 
6
6
  License: The MIT License
data/README.md CHANGED
@@ -17,7 +17,7 @@ OverSIP is a powerful and flexible SIP proxy & server by the authors of [draft-i
17
17
  * SIP over UDP, TCP, TLS and WebSocket (use true SIP in your web apps)
18
18
  * Full support for IPv4, IPv6 and DNS resolution (NAPTR, SRV, A, AAAA)
19
19
  * The perfect Outbound Edge Proxy
20
- * Written by the authors of [draft-ietf-sipcore-sip-websocket](http://tools.ietf.org/html/draft-ietf-sipcore-sip-websocket) and [JsSIP](http://www.jssip.net)
20
+ * Written by the authors of [draft-ietf-sipcore-sip-websocket](http://tools.ietf.org/html/draft-ietf-sipcore-sip-websocket) and [JsSIP](http://jssip.net)
21
21
 
22
22
 
23
23
  ## Documentation
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## ca-bundle.crt -- Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Thu Jun 28 15:03:08 2012
4
+ ## Certificate data from Mozilla as of: Sat Dec 29 20:03:40 2012
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -14,7 +14,7 @@
14
14
  ## Just configure this file as the SSLCACertificateFile.
15
15
  ##
16
16
 
17
- # @(#) $RCSfile: certdata.txt,v $ $Revision: 1.85 $ $Date: 2012/06/28 13:50:18 $
17
+ # @(#) $RCSfile: certdata.txt,v $ $Revision: 1.87 $ $Date: 2012/12/29 16:32:45 $
18
18
 
19
19
  GTE CyberTrust Global Root
20
20
  ==========================
@@ -3847,3 +3847,49 @@ UZTLfhbrES+jkkXITHHZvMmZUldGL1DPvTVp9D0VzgalLA8+9oG6lLvDu79leNKGef9JOxqDDPDe
3847
3847
  eOzI8k1MGt6CKfjBWtrt7uYnXuhF0J0cUahoq0Tj0Itq4/g7u9xN12TyUb7mqqta6THuBrxzvxNi
3848
3848
  Cp/HuZc=
3849
3849
  -----END CERTIFICATE-----
3850
+
3851
+ T-TeleSec GlobalRoot Class 3
3852
+ ============================
3853
+ -----BEGIN CERTIFICATE-----
3854
+ MIIDwzCCAqugAwIBAgIBATANBgkqhkiG9w0BAQsFADCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoM
3855
+ IlQtU3lzdGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBU
3856
+ cnVzdCBDZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwHhcNMDgx
3857
+ MDAxMTAyOTU2WhcNMzMxMDAxMjM1OTU5WjCBgjELMAkGA1UEBhMCREUxKzApBgNVBAoMIlQtU3lz
3858
+ dGVtcyBFbnRlcnByaXNlIFNlcnZpY2VzIEdtYkgxHzAdBgNVBAsMFlQtU3lzdGVtcyBUcnVzdCBD
3859
+ ZW50ZXIxJTAjBgNVBAMMHFQtVGVsZVNlYyBHbG9iYWxSb290IENsYXNzIDMwggEiMA0GCSqGSIb3
3860
+ DQEBAQUAA4IBDwAwggEKAoIBAQC9dZPwYiJvJK7genasfb3ZJNW4t/zN8ELg63iIVl6bmlQdTQyK
3861
+ 9tPPcPRStdiTBONGhnFBSivwKixVA9ZIw+A5OO3yXDw/RLyTPWGrTs0NvvAgJ1gORH8EGoel15YU
3862
+ NpDQSXuhdfsaa3Ox+M6pCSzyU9XDFES4hqX2iys52qMzVNn6chr3IhUciJFrf2blw2qAsCTz34ZF
3863
+ iP0Zf3WHHx+xGwpzJFu5ZeAsVMhg02YXP+HMVDNzkQI6pn97djmiH5a2OK61yJN0HZ65tOVgnS9W
3864
+ 0eDrXltMEnAMbEQgqxHY9Bn20pxSN+f6tsIxO0rUFJmtxxr1XV/6B7h8DR/Wgx6zAgMBAAGjQjBA
3865
+ MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBS1A/d2O2GCahKqGFPr
3866
+ AyGUv/7OyjANBgkqhkiG9w0BAQsFAAOCAQEAVj3vlNW92nOyWL6ukK2YJ5f+AbGwUgC4TeQbIXQb
3867
+ fsDuXmkqJa9c1h3a0nnJ85cp4IaH3gRZD/FZ1GSFS5mvJQQeyUapl96Cshtwn5z2r3Ex3XsFpSzT
3868
+ ucpH9sry9uetuUg/vBa3wW306gmv7PO15wWeph6KU1HWk4HMdJP2udqmJQV0eVp+QD6CSyYRMG7h
3869
+ P0HHRwA11fXT91Q+gT3aSWqas+8QPebrb9HIIkfLzM8BMZLZGOMivgkeGj5asuRrDFR6fUNOuIml
3870
+ e9eiPZaGzPImNC1qkp2aGtAw4l1OBLBfiyB+d8E9lYLRRpo7PHi4b6HQDWSieB4pTpPDpFQUWw==
3871
+ -----END CERTIFICATE-----
3872
+
3873
+ EE Certification Centre Root CA
3874
+ ===============================
3875
+ -----BEGIN CERTIFICATE-----
3876
+ MIIEAzCCAuugAwIBAgIQVID5oHPtPwBMyonY43HmSjANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG
3877
+ EwJFRTEiMCAGA1UECgwZQVMgU2VydGlmaXRzZWVyaW1pc2tlc2t1czEoMCYGA1UEAwwfRUUgQ2Vy
3878
+ dGlmaWNhdGlvbiBDZW50cmUgUm9vdCBDQTEYMBYGCSqGSIb3DQEJARYJcGtpQHNrLmVlMCIYDzIw
3879
+ MTAxMDMwMTAxMDMwWhgPMjAzMDEyMTcyMzU5NTlaMHUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKDBlB
3880
+ UyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMSgwJgYDVQQDDB9FRSBDZXJ0aWZpY2F0aW9u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JJUPwssd8m92kMfM
3894
+ dcGWxZ0=
3895
+ -----END CERTIFICATE-----
@@ -88,19 +88,20 @@ module OverSIP::SIP
88
88
 
89
89
  # Incoming initial request or in-dialog incoming/outgoing request. Must only perform
90
90
  # Outbound for the incoming case and just when:
91
- # - There are 2 Route headers.
92
91
  # - All the Route headers point to us.
92
+ # - There are 1 or 2 Route headers.
93
93
  # - The latest Route has a flow token and a valid ;ovid param (so has been generated
94
94
  # previously by us).
95
95
  # NOTE: But don't check its value so it still would work in case of server reboot.
96
96
  # - It's an incoming Outbound request (so flow token in the Route does not match the
97
97
  # flow token of the incoming connection).
98
98
  if (
99
- num_removes == 2 and
100
- @routes.size == 2 and
99
+ (num_removes == 1 or num_removes == 2) and
100
+ @routes.size == num_removes and
101
101
  (outbound_route = @routes.last) and
102
102
  outbound_route.ovid_param and
103
- (@route_outbound_flow_token = outbound_route.user) != @connection_outbound_flow_token
103
+ (@route_outbound_flow_token = outbound_route.user) and
104
+ @route_outbound_flow_token != @connection_outbound_flow_token
104
105
  )
105
106
  @incoming_outbound_requested = true
106
107
  log_system_debug "destination is an incoming Outbound connection" if $oversip_debug
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 3
8
- TINY = 5
8
+ TINY = 6
9
9
  DEVEL = nil # Set to nil for stable releases.
10
10
  end
11
11
 
@@ -15,7 +15,7 @@ module OverSIP
15
15
  AUTHOR = "Inaki Baz Castillo"
16
16
  AUTHOR_EMAIL = "ibc@aliax.net"
17
17
  HOMEPAGE = "http://www.oversip.net"
18
- year = "2012"
18
+ year = "2013"
19
19
  DESCRIPTION = "#{PROGRAM_NAME} #{VERSION}\n#{HOMEPAGE}\n#{year}, #{AUTHOR} <#{AUTHOR_EMAIL}>"
20
20
 
21
21
  end
@@ -98,7 +98,7 @@ module OverSIP::WebSocket
98
98
 
99
99
  # Get the body.
100
100
  if parser_nbytes != ws_message.bytesize
101
- @msg.body = ws_message[parser_nbytes..-1]
101
+ @msg.body = ws_message[parser_nbytes..-1].force_encoding(::Encoding::UTF_8)
102
102
 
103
103
  if @msg.content_length and @msg.content_length != @msg.body.bytesize
104
104
  log_system_warn "SIP message body size (#{@msg.body.bytesize}) does not match Content-Length (#{@msg.content_length.inspect}), ignoring message"
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.3.5
4
+ version: 1.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-17 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine-le