From 933d72fe00070ffc61f05a637480b5187841d7e6 Mon Sep 17 00:00:00 2001 From: Karn Saheb Date: Wed, 8 Jul 2020 15:01:42 -0400 Subject: [PATCH] From/to tags --- lib/sippy_cup/runner.rb | 3 ++- lib/sippy_cup/scenario.rb | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/sippy_cup/runner.rb b/lib/sippy_cup/runner.rb index 7ffeaa4..63d7518 100644 --- a/lib/sippy_cup/runner.rb +++ b/lib/sippy_cup/runner.rb @@ -23,7 +23,7 @@ def initialize(scenario, opts = {}) @scenario = scenario @scenario_options = @scenario.scenario_options - defaults = { full_sipp_output: true, sudo: true } + defaults = { full_sipp_output: true, sudo: true, trace_err: nil } @options = defaults.merge(opts) @command = @options[:command] @@ -92,6 +92,7 @@ def command command_options.each_pair do |key, value| command << (value ? " -#{key} #{value}" : " -#{key}") end + command << " -trace_err" command << " #{@scenario_options[:destination]}" end end diff --git a/lib/sippy_cup/scenario.rb b/lib/sippy_cup/scenario.rb index 7073c9a..aaf98da 100644 --- a/lib/sippy_cup/scenario.rb +++ b/lib/sippy_cup/scenario.rb @@ -812,8 +812,8 @@ def send_bye_using_contact(opts = {}) BYE [next_url] SIP/2.0 Via: SIP/2.0/[transport] #{@adv_ip}:[local_port];rport;branch=[branch] [routes] -To: "#{@from_user}" ;tag=[call_number] -From: "#{@to_user}" ;tag=[call_number] +To: "#{@from_user}" [from_tag_param] +From: "#{@to_user}" [to_tag_param] [last_Call-ID:] Contact: Max-Forwards: 100