Skip to content

Commit

Permalink
From/to tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Karn Saheb committed Jul 8, 2020
1 parent 5a2fe20 commit 933d72f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/sippy_cup/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions lib/sippy_cup/scenario.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}" <sip:#{@from_user}@10.231.56.206:5090>;tag=[call_number]
From: "#{@to_user}" <sip:#{@to_user}@stage.tncp.textnow.com>;tag=[call_number]
To: "#{@from_user}" <sip:#{@from_user}@10.231.56.206:5090>[from_tag_param]
From: "#{@to_user}" <sip:#{@to_user}@stage.tncp.textnow.com>[to_tag_param]
[last_Call-ID:]
Contact: <sip:#{@adv_ip};transport=[transport]>
Max-Forwards: 100
Expand Down

0 comments on commit 933d72f

Please sign in to comment.