Browse Source

support reset flag in ng-client

Change-Id: I52c632a522f4b493e6175619671165ebf7f65947
pull/183/head
Richard Fuchs 10 years ago
parent
commit
2cff49b607
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      utils/ng-client

+ 2
- 1
utils/ng-client View File

@ -42,6 +42,7 @@ GetOptions(
'media-handover' => \$options{'media handover'}, 'media-handover' => \$options{'media handover'},
'TOS=i' => \$options{'TOS'}, 'TOS=i' => \$options{'TOS'},
'delete-delay=i' => \$options{'delete-delay'}, 'delete-delay=i' => \$options{'delete-delay'},
'reset' => \$options{'reset'},
) or die; ) or die;
my $cmd = shift(@ARGV) or die; my $cmd = shift(@ARGV) or die;
@ -51,7 +52,7 @@ my %packet = (command => $cmd);
for my $x (split(',', 'from-tag,to-tag,call-id,transport protocol,media address,ICE,address family,TOS,DTLS,via-branch,delete-delay')) { for my $x (split(',', 'from-tag,to-tag,call-id,transport protocol,media address,ICE,address family,TOS,DTLS,via-branch,delete-delay')) {
defined($options{$x}) and $packet{$x} = $options{$x}; defined($options{$x}) and $packet{$x} = $options{$x};
} }
for my $x (split(',', 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address')) {
for my $x (split(',', 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address,reset')) {
defined($options{$x}) and push(@{$packet{flags}}, $x); defined($options{$x}) and push(@{$packet{flags}}, $x);
} }
for my $x (split(',', 'origin,session connection')) { for my $x (split(',', 'origin,session connection')) {


Loading…
Cancel
Save