<div dir="ltr"><div>Let's say I have two devices configured and the follow call scenarios occur.<br><br>[100]<br>disallow=all<br>allow=g722&ulaw<br><br>Polycom phone with g722,ulaw,alaw,g729<br><br>[101]<br>disallow=all<br>
allow=ulaw<br><br>Polycom phone with g722,ulaw,alaw,g729<br><br>101 dials 100 -> ulaw to ulaw is chosen<br>100 dials 101 -> g722 to ulaw is chosen<br><br>Ideally when 100 dials 101 ulaw would be chosen since it is the common format. Looking into this deeper<br>
<br>Device 100 sends INVITE to Asterisk offering g722,ulaw,alaw,g729<br>Asterisk sends INVITE to device 101 offering ulaw<br>Device 101 sends 200 OK to Asterisk offering ulaw<br>Asterisk sends 200 OK to device 100 offering g722,ulaw<br>
<br>I can prevent transcoding by adding SIP_CODEC_INBOUND=ulaw to the dialplan for extension 101. This causes Asterisk to send 200 OK to device 100 offering ulaw. Am I missing why Asterisk wouldn't just offer the highest priority codec they have in common to prevent transcoding?<br>
<br></div><div>Ryan<br></div></div>