diff --git a/daemon/codec.c b/daemon/codec.c index 0362821a4..3cd06026c 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -4357,6 +4357,8 @@ void codec_store_populate(struct codec_store *dst, struct codec_store *src, GHas str_free_dup(&pt->codec_opts); pt->codec_opts = orig_pt->codec_opts; orig_pt->codec_opts = STR_NULL; + if (pt->for_transcoding) + codec_touched(dst, pt); } __codec_options_set(call, pt, codec_set); codec_store_add_end(dst, pt); diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index a0a928ebb..3ba1b17c7 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -78,6 +78,93 @@ sub stun_succ { }; +new_call; + +offer('DTMF PT reduction', + { codec => { transcode => ['PCMA', 'PCMU'] } }, <