lib/sippy_cup/runner.rb in sippy_cup-0.7.0 vs lib/sippy_cup/runner.rb in sippy_cup-0.7.1
- old
+ new
@@ -103,10 +103,10 @@
max_concurrent = @scenario_options[:concurrent_max] || @scenario_options[:max_concurrent]
options[:l] = max_concurrent if max_concurrent
options[:m] = @scenario_options[:number_of_calls] if @scenario_options[:number_of_calls]
options[:r] = @scenario_options[:calls_per_second] if @scenario_options[:calls_per_second]
- options[:s] = @scenario_options[:to] if @scenario_options[:to]
+ options[:s] = @scenario_options[:to].split('@').first if @scenario_options[:to]
options[:i] = @scenario_options[:source] if @scenario_options[:source]
options[:mp] = @scenario_options[:media_port] if @scenario_options[:media_port]
if @scenario_options[:calls_per_second_max]