sippy_cup 0.7.1 → 0.7.2

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: 650efa322556dc1bc094c6d74d2787f02ea61189
4
- data.tar.gz: ade1161d858b4c428def8871926711af500f2fac
3
+ metadata.gz: cbaffb16fed7698d88112dd2209c69cbfb0dc607
4
+ data.tar.gz: 705c5d10b675f8980907b0780fe1df93013d7836
5
5
  SHA512:
6
- metadata.gz: bcc968241f413e997b7772638eee656b26a33d97f661bccf55087622c9352786270dc09a07a62158ac0c5d7ee6801ef22502b57a50c3050adcbea146f6f649f5
7
- data.tar.gz: fd3b9953d323f1c39bdbcb425b44822f455a5c67c089e5a5c21268008edacc7523ba986b62b416cfa97d4bf7a0111ba0f839342c944897767313aa4b3d559a9c
6
+ metadata.gz: dddf24930f8bfecaefb3fddfc6bc65509b88efd00495060c1a88802ad6a4724b2032b750ff17fe7df29d33b93b16b84fe62d9fdaa980d17d7effcf171d94fdd8
7
+ data.tar.gz: f781f6e53aceae820e8f56f36cf9ebe4b2c45e44e85b640141e67fac1f926092f767f241901fb8649d31a03f3997d54e3c189e5d837e8319932cc7320ab382ed
@@ -1,5 +1,8 @@
1
1
  # develop
2
2
 
3
+ # [0.7.2](https://github.com/mojolingo/sippy_cup/compare/v0.7.1...v0.7.2)
4
+ * Bugfix: Logical destination for dialog formation belongs in request line
5
+
3
6
  # [0.7.1](https://github.com/mojolingo/sippy_cup/compare/v0.7.0...v0.7.1)
4
7
  * Bugfix: Ensure destination user is parsed out from `:to` correctly
5
8
 
@@ -105,7 +105,7 @@ module SippyCup
105
105
  options[:l] = max_concurrent if max_concurrent
106
106
  options[:m] = @scenario_options[:number_of_calls] if @scenario_options[:number_of_calls]
107
107
  options[:r] = @scenario_options[:calls_per_second] if @scenario_options[:calls_per_second]
108
- options[:s] = @scenario_options[:to].split('@').first if @scenario_options[:to]
108
+ options[:s] = @scenario_options[:to].to_s.split('@').first if @scenario_options[:to]
109
109
 
110
110
  options[:i] = @scenario_options[:source] if @scenario_options[:source]
111
111
  options[:mp] = @scenario_options[:media_port] if @scenario_options[:media_port]
@@ -158,7 +158,7 @@ module SippyCup
158
158
  from_addr = "#{@from_user}@#{@adv_ip}:[local_port]"
159
159
  msg = <<-MSG
160
160
 
161
- INVITE sip:[service]@[remote_ip]:[remote_port] SIP/2.0
161
+ INVITE sip:#{to_addr} SIP/2.0
162
162
  Via: SIP/2.0/[transport] #{@adv_ip}:[local_port];branch=[branch]
163
163
  From: "#{@from_user}" <sip:#{from_addr}>;tag=[call_number]
164
164
  To: <sip:#{to_addr}>
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module SippyCup
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
@@ -105,10 +105,10 @@ describe SippyCup::Scenario do
105
105
  context "when a to address is specified" do
106
106
  let(:args) { {to: 'usera@foo.bar'} }
107
107
 
108
- it "includes the specified address in the To header, but not the URI line" do
108
+ it "includes the specified address in the To header and URI line" do
109
109
  subject.invite
110
110
  subject.to_xml.should match(%r{To: <sip:\[service\]@foo.bar:\[remote_port\]})
111
- subject.to_xml.should match(%r{INVITE sip:\[service\]@\[remote_ip\]:\[remote_port\]})
111
+ subject.to_xml.should match(%r{INVITE sip:\[service\]@foo.bar:\[remote_port\]})
112
112
  end
113
113
  end
114
114
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sippy_cup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Klang