|
|
|
@ -61,6 +61,7 @@ GetOptions( |
|
|
|
'all' => \$options{'all'}, |
|
|
|
'address=s' => \$options{'address'}, |
|
|
|
'pad-crypto' => \$options{'pad crypto'}, |
|
|
|
'generate-mid' => \$options{'generate mid'}, |
|
|
|
) or die; |
|
|
|
|
|
|
|
my $cmd = shift(@ARGV) or die; |
|
|
|
@ -73,7 +74,7 @@ for my $x (split(/,/, 'from-tag,to-tag,call-id,transport protocol,media address, |
|
|
|
for my $x (split(/,/, 'TOS,delete-delay')) { |
|
|
|
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,no rtcp attribute,loop protect,record call,always transcode,all,pad crypto')) { |
|
|
|
for my $x (split(/,/, 'trust address,symmetric,asymmetric,force,strict source,media handover,sip source address,reset,port latching,no rtcp attribute,loop protect,record call,always transcode,all,pad crypto,generate mid')) { |
|
|
|
defined($options{$x}) and push(@{$packet{flags}}, $x); |
|
|
|
} |
|
|
|
for my $x (split(/,/, 'origin,session connection')) { |
|
|
|
|