<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>I'm a
little confused about Asterisk codec negotiation. Hopefully someone can
help.</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>I have
two phones, one on a slow link where I'd like to use G729, and one on a fast
link where I'd like to use ulaw.</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>My
sip.conf has:</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>[general]</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>allow=ulaw<BR>allow=g729</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>...</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>[slow-phone]</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>allow=g729</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>allow=ulaw</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>Firstly, does setting the codec for the slow-link phone override the
general settings? Of course it's not actually documented
anywhere.</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>When
the fast link phone calls the slow link phone, it sends ulaw and G729 in that
order to Asterisk. When Asterisk relays the INVITE to the slow link phone, it
does not change the codec preference, and sends ulaw followed by G729. I end up
with a call that's ulaw on both legs, which isn't what I want.
</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>I
guess the settings in [slow-phone] aren't overriding the settings in [general].
That's bad...</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff size=2>How
can I work around this?</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006></SPAN> </DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2>Doug.</FONT></SPAN></DIV>
<DIV><SPAN class=810300317-20072006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV></BODY></HTML>