oversip 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -182,7 +182,7 @@ module OverSIP::SIP
182
182
 
183
183
  def rfc3263_succeeded result
184
184
  # After RFC 3263 (DNS) resolution we get N targets.
185
- @num_target = 0 # First target is 0 (rather than 1).
185
+ @num_target = 0
186
186
  @target = @targets = nil # Avoid conflicts if same Proxy is used for serial forking to a new destination.
187
187
 
188
188
  case result
@@ -209,15 +209,15 @@ module OverSIP::SIP
209
209
  # Single target.
210
210
  if @target and @num_target == 0
211
211
  @current_target = @target
212
- log_system_debug "trying single target: #{@current_target}" if $oversip_debug
213
212
  @num_target = 1
213
+ log_system_debug "trying single target: #{@current_target}" if $oversip_debug
214
214
  use_target @current_target
215
215
 
216
216
  # Multiple targets (so @targets is set).
217
217
  elsif @targets and @num_target < @targets.size
218
218
  @current_target = @targets[@num_target]
219
- log_system_debug "trying target #{@num_target+1} of #{@targets.size}: #{@current_target}" if $oversip_debug
220
219
  @num_target += 1
220
+ log_system_debug "trying target #{@num_target} of #{@targets.size}: #{@current_target}" if $oversip_debug
221
221
  use_target @current_target
222
222
 
223
223
  # No more targets.
@@ -173,7 +173,7 @@ module OverSIP::SIP
173
173
  # Don't add routing headers again if we are in DNS failover within the same Proxy instance.
174
174
  # But we must run this method if it's an incoming request asking for Outbound usage (in this
175
175
  # case @num_target is nil so the method continues).
176
- return if @num_target and @num_target > 0
176
+ return if @num_target and @num_target > 1
177
177
 
178
178
  add_rr_path = false
179
179
 
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 3
8
- TINY = 0
8
+ TINY = 1
9
9
  DEVEL = nil # Set to nil for stable releases.
10
10
  end
11
11
 
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.0
4
+ version: 1.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine-le
16
- requirement: &7545460 !ruby/object:Gem::Requirement
16
+ requirement: &20898780 !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: *7545460
24
+ version_requirements: *20898780
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: iobuffer
27
- requirement: &7544280 !ruby/object:Gem::Requirement
27
+ requirement: &20897540 !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: *7544280
35
+ version_requirements: *20897540
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: em-posixmq
38
- requirement: &7543480 !ruby/object:Gem::Requirement
38
+ requirement: &20896480 !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: *7543480
46
+ version_requirements: *20896480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: em-udns
49
- requirement: &7542900 !ruby/object:Gem::Requirement
49
+ requirement: &20895780 !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: *7542900
57
+ version_requirements: *20895780
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: escape_utils
60
- requirement: &7542220 !ruby/object:Gem::Requirement
60
+ requirement: &20895020 !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: *7542220
68
+ version_requirements: *20895020
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: term-ansicolor
71
- requirement: &8320500 !ruby/object:Gem::Requirement
71
+ requirement: &21759780 !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: *8320500
79
+ version_requirements: *21759780
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: posix-spawn
82
- requirement: &8319940 !ruby/object:Gem::Requirement
82
+ requirement: &21759220 !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: *8319940
90
+ version_requirements: *21759220
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: em-synchrony
93
- requirement: &8319380 !ruby/object:Gem::Requirement
93
+ requirement: &21758680 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.0.2
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *8319380
101
+ version_requirements: *21758680
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rake
104
- requirement: &8318920 !ruby/object:Gem::Requirement
104
+ requirement: &21758180 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,7 +109,7 @@ dependencies:
109
109
  version: 0.9.2
110
110
  type: :development
111
111
  prerelease: false
112
- version_requirements: *8318920
112
+ version_requirements: *21758180
113
113
  description: ! 'OverSIP is an async SIP proxy/server programmable in Ruby language.
114
114
  Some features of OverSIP are:
115
115