Hello!
I’ve switched to Asterisk 18 due to " Advanced Codec Negotiation" feature.
But still can’t get how to disable transcoding at all.
I have Asterisk 18.0.5 with serveral endpoints. For ex, A is configured with
allow = !all, opus, alaw, ulaw
and B with
alaw = !all, alaw, ulaw
Both of them configured with
codec_prefs_incoming_answer : prefer:configured, operation:intersect, keep:all, transcode:prevent
codec_prefs_incoming_offer : prefer:configured, operation:intersect, keep:all, transcode:prevent
codec_prefs_outgoing_answer : prefer:configured, operation:intersect, keep:all, transcode:prevent
codec_prefs_outgoing_offer : prefer:configured, operation:intersect, keep:all, transcode:prevent
When I’m calling from endpoint A to B, I’m still getting A is talking to Asterisk with OPUS
, but with B Asterisk it talking with alaw
. So, Asterisk doing transcoding.
Dialplan is quite simple, just
Dial(PJSIP/${EXTEN}@{DOMAIN},60)
SDP of INVITE of endpoint A is
a=rtpmap:96 opus/48000/2
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:97 telephone-event/48000
a=rtpmap:101 telephone-event/8000
a=fmtp:96 useinbandfec=1
200 OK SDP from endpoint B is
m=audio 22440 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
Is there any way to disable transcoding on Asterisk at all? And best if Asterisk will look on codecs present in 200 OK
answer from remote side and align own 200 OK
with it. So-called late negotiation.
Thanks!