|
|
@ -44,13 +44,14 @@ GetOptions( |
|
|
'delete-delay=i' => \$options{'delete-delay'}, |
|
|
'delete-delay=i' => \$options{'delete-delay'}, |
|
|
'reset' => \$options{'reset'}, |
|
|
'reset' => \$options{'reset'}, |
|
|
'port-latching' => \$options{'port latching'}, |
|
|
'port-latching' => \$options{'port latching'}, |
|
|
|
|
|
'media-address=s' => \$options{'media address'}, |
|
|
) or die; |
|
|
) or die; |
|
|
|
|
|
|
|
|
my $cmd = shift(@ARGV) or die; |
|
|
my $cmd = shift(@ARGV) or die; |
|
|
|
|
|
|
|
|
my %packet = (command => $cmd); |
|
|
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,media address')) { |
|
|
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,reset,port latching')) { |
|
|
for my $x (split(',', 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address,reset,port latching')) { |
|
|
|