Let's say I have two devices configured and the follow call scenarios occur.

[100]
disallow=all
allow=g722&ulaw

Polycom phone with g722,ulaw,alaw,g729

[101]
disallow=all
allow=ulaw

Polycom phone with g722,ulaw,alaw,g729

101 dials 100 -> ulaw to ulaw is chosen
100 dials 101 -> g722 to ulaw is chosen

Ideally when 100 dials 101 ulaw would be chosen since it is the common
format. Looking into this deeper

Device 100 sends INVITE to Asterisk offering g722,ulaw,alaw,g729
Asterisk sends INVITE to device 101 offering ulaw
Device 101 sends 200 OK to Asterisk offering ulaw
Asterisk sends 200 OK to device 100 offering g722,ulaw

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?

Ryan
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to