oversip 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/etc/server.rb +3 -9
  2. data/lib/oversip/version.rb +1 -1
  3. metadata +2 -2
data/etc/server.rb CHANGED
@@ -195,20 +195,14 @@ def (OverSIP::SipEvents).on_request request
195
195
 
196
196
  when :REGISTER
197
197
 
198
+ proxy = ::OverSIP::SIP::Proxy.new :proxy_out
199
+
198
200
  if MyExampleApp.do_outbound_mangling
199
201
  # Contact mangling for the case in which the registrar does not support Path.
200
- ::OverSIP::Modules::OutboundMangling.add_outbound_to_contact request
202
+ ::OverSIP::Modules::OutboundMangling.add_outbound_to_contact proxy
201
203
  end
202
204
 
203
- proxy = ::OverSIP::SIP::Proxy.new :proxy_out
204
-
205
205
  proxy.on_success_response do |response|
206
- if MyExampleApp.do_outbound_mangling
207
- # Undo changes done to the Contact header provided by the client, so it receives
208
- # the same value in the 200 response from the registrar.
209
- ::OverSIP::Modules::OutboundMangling.remove_outbound_from_contact response
210
- end
211
-
212
206
  if MyExampleApp.do_user_assertion
213
207
  # The registrar replies 200 after a REGISTER with credentials so let's assert
214
208
  # the current SIP user to this connection.
@@ -5,7 +5,7 @@ module OverSIP
5
5
  module Version
6
6
  MAJOR = 1
7
7
  MINOR = 4
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.4.0
4
+ version: 1.4.1
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: 2013-09-15 00:00:00.000000000 Z
12
+ date: 2013-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine-le