|
|
|
@ -31,6 +31,7 @@ GetOptions( |
|
|
|
'replace-sdp-version' => \$options{'replace-sdp version'}, |
|
|
|
'replace-username' => \$options{'replace-username'}, |
|
|
|
'replace-session-name' => \$options{'replace-session-name'}, |
|
|
|
'replace-zero-address' => \$options{'replace-zero-address'}, |
|
|
|
'client-address=s' => \$options{'client-address'}, |
|
|
|
'sdp=s' => \$options{'sdp'}, |
|
|
|
'sdp-file=s' => \$options{'sdp-file'}, |
|
|
|
@ -103,7 +104,7 @@ for my $x (split(/,/, 'TOS,delete-delay')) { |
|
|
|
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,symmetric codecs,asymmetric codecs,inject DTMF,generate RTCP,single codec,reorder codecs')) { |
|
|
|
defined($options{$x}) and push(@{$packet{flags}}, $x); |
|
|
|
} |
|
|
|
for my $x (split(/,/, 'origin,session connection,sdp version,username,session-name')) { |
|
|
|
for my $x (split(/,/, 'origin,session connection,sdp version,username,session-name,zero-address')) { |
|
|
|
defined($options{'replace-' . $x}) and push(@{$packet{replace}}, $x); |
|
|
|
} |
|
|
|
for my $x (split(/,/, 'rtcp-mux,SDES,supports,T.38,OSRTP')) { |
|
|
|
|