diff --git a/daemon/call.c b/daemon/call.c index ed74acdcc..62c867c6a 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -1689,7 +1689,7 @@ init: ice_update(other_media->ice_agent, sp); ice_update(media->ice_agent, NULL); /* this is in case rtcp-mux has changed */ - recording_setup_media(other_media); + recording_setup_media(media); } return 0; diff --git a/utils/rtpengine-ng-client b/utils/rtpengine-ng-client index e515c298a..7ab655e75 100755 --- a/utils/rtpengine-ng-client +++ b/utils/rtpengine-ng-client @@ -44,6 +44,7 @@ GetOptions( 'reset' => \$options{'reset'}, 'port-latching' => \$options{'port latching'}, 'loop-protect' => \$options{'loop protect'}, + 'record-call' => \$options{'record call'}, 'media-address=s' => \$options{'media address'}, 'codec-strip=s@' => \$options{'codec-strip'}, 'codec-offer=s@' => \$options{'codec-offer'}, @@ -63,7 +64,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')) { +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')) { defined($options{$x}) and push(@{$packet{flags}}, $x); } for my $x (split(/,/, 'origin,session connection')) {