diff --git a/utils/rtpengine-ng-client b/utils/rtpengine-ng-client index 7c8084c29..8c3c9f1fa 100755 --- a/utils/rtpengine-ng-client +++ b/utils/rtpengine-ng-client @@ -73,7 +73,7 @@ GetOptions( 'db-id=i' => \$options{'db-id'}, 'T38=s@' => \$options{'T.38'}, 'code=s' => \$options{'code'}, - 'OSRTP' => \$options{'OSRTP'}, + 'OSRTP=s@' => \$options{'OSRTP'}, ) or die; my $cmd = shift(@ARGV) or die; @@ -86,13 +86,13 @@ 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,unidirectional,force,strict source,media handover,sip source address,reset,port latching,no rtcp attribute,full rtcp attribute,loop protect,record call,always transcode,all,pad crypto,generate mid,fragment,original sendrecv,OSRTP')) { +for my $x (split(/,/, 'trust address,symmetric,asymmetric,unidirectional,force,strict source,media handover,sip source address,reset,port latching,no rtcp attribute,full rtcp attribute,loop protect,record call,always transcode,all,pad crypto,generate mid,fragment,original sendrecv')) { defined($options{$x}) and push(@{$packet{flags}}, $x); } for my $x (split(/,/, 'origin,session connection')) { defined($options{'replace-' . $x}) and push(@{$packet{replace}}, $x); } -for my $x (split(/,/, 'rtcp-mux,SDES,supports,T.38')) { +for my $x (split(/,/, 'rtcp-mux,SDES,supports,T.38,OSRTP')) { $packet{$x} = $options{$x} if defined($options{$x}) && ref($options{$x}) eq 'ARRAY'; }