<div id="RTEContent">&nbsp;<br> &nbsp;&nbsp; &nbsp;Hello all,<br> <br> &nbsp;&nbsp; &nbsp;We are facing a problem trying to pass faxes between two gateways configured this way (we have tested with Quintum and Cisco gws):<br> <br> &nbsp;&nbsp; &nbsp;GW1 -------&gt; Asterisk (1.2)-------&gt; GW2<br> <br> &nbsp;&nbsp; &nbsp;Both gateways and asterisk support g729 and g711, we want to use g729 for voice and fallback to g711 when a fax is detected.<br> <br> &nbsp;&nbsp; &nbsp;The call goes like this:<br> <br> &nbsp;&nbsp; &nbsp;- GW1 initiates the call using g729 (at this time, no one knows that the call is a fax)<br> <br> &nbsp;&nbsp; &nbsp;- Once the call is answered, GW2 detects a fax tone, it sends an INVITE to * to change the media to g711, Asterisk relies the INVITE correctly to GW2 and GW2 switches to g711, the problem seems to be that * replays to the INVITE coming from GW2 with an OK with codec g729 as prefered codec, this fools GW2 and chooses g729 again.<br> <br> &nbsp;&nbsp;
 &nbsp;The codec that Asterisk uses in the OK seems to be the codec sent by GW1 when the call was established instead of sending the codec that GW2 sent in the (RE)INVITE.<br> <br> &nbsp;&nbsp; &nbsp;Can anyone comment if this is a bug or simply we are missunderstanding something?<br> <br> &nbsp;&nbsp; &nbsp;Thank you,<br> <br> A</div><p>
                <hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited - Access over 1 million songs. Try it free.</a>