From bbdedc5899843377f12c17375fc84e48dd82f1f5 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Thu, 23 Apr 2020 09:39:32 -0400 Subject: [PATCH] fix OSRTP option for rtpengine-ng-client Change-Id: Ie012469aed4919c3e006aee215f63ed6fbd3fa34 --- utils/rtpengine-ng-client | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'; }