MT#4533 Don't transcode MOH files for PBX.

apogrebennyk/3_1_force_outbound
Andreas Granig 12 years ago
parent 02207fc4bb
commit 4421421689

@ -299,7 +299,7 @@ sub handles_list :Chained('base') :PathPart('handles') :CaptureArgs(0) {
});
if($c->stash->{set_result}->contract_id) {
$handles_rs = $handles_rs->search({ 'groups.name' => { '=' => 'pbx' } });
$handles_rs = $handles_rs->search({ 'groups.name' => { '-in' => ['pbx', 'music_on_hold'] } });
} else {
$handles_rs = $handles_rs->search({ 'groups.name' => { '!=' => 'pbx' } });
}
@ -404,7 +404,7 @@ sub handles_edit :Chained('handles_base') :PathPart('edit') {
}
}
if ($file_result->handle->name eq 'music_on_hold') {
if ($file_result->handle->name eq 'music_on_hold' && !$file_result->set->contract_id) {
$target_codec = 'PCMA';
$filename =~ s/\.[^.]+$/.pcma/;
}

Loading…
Cancel
Save