Thank you very much<br><br><div><span class="gmail_quote">On 4/23/07, <b class="gmail_sendername">Nicholas Campion</b> &lt;<a href="mailto:campnic@gmail.com">campnic@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It looks like the section you want to look at is channel.c:set_format (line 2808).&nbsp; My understanding is that chan-&gt;nativeformats is set to the format that the channel was created in (GSM for instance) and fmt is set to the codec we are trying to accept audio from or write audio to.&nbsp; The important line is &quot;res = ast_translator_best_choice(&amp;fmt, &amp;native);&quot; this is where the channel object is trying to determine what the best translation path (sequence of translations) is for fmt to native (the channels format).&nbsp; 
translate.c:ast_translator_best_choice (line 787) determines what the sequence of translations will be, but if (*dst) &amp; (*srcs) (the codecs are common/ the same), then you can see that it returns that the codecs are already matching.&nbsp; (See the comment on 802:&quot;/* We are done, this is a common format to both. */&quot;)
<br><br>I had no prior knowledge of this problem.&nbsp; Looking at the source code is really the only way to get more than comments which are someones understanding.<br><br>Good luck,<br>Nick<div><span class="e" id="q_1121f18106f2f99f_1">
<br><br><div><span class="gmail_quote">
On 4/23/07, <b class="gmail_sendername">Alexandr Olekhnovich</b> &lt;<a href="mailto:a.olekhnovich@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">a.olekhnovich@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It&#39;s your understanding and mine, but I need to know exactly. It&#39;s not easy to check.<div><span><br><br><div><span class="gmail_quote">On 4/23/07, <b class="gmail_sendername">Nicholas Campion
</b> &lt;<a href="mailto:campnic@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
campnic@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">No.&nbsp; My understanding is that codec translation only takes place when the codecs are not the same OR if asterisk is recording the conversation.&nbsp; (The second situation may not require conversion either)
<br><br><div><div><span><span class="gmail_quote">
On 4/23/07, <b class="gmail_sendername">Alexandr Olekhnovich</b> &lt;<a href="mailto:a.olekhnovich@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">a.olekhnovich@gmail.com</a>&gt; wrote:</span>


</span></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><span>
Hello, everyone.<br>I&#39;m interested in one thing: as I know asterisk retranslates the media stream with the next way<br>1. Gets the frame with the UA1&#39;s codec<br>2. Retranslates it to slan<br>3. Ratranslates slan to UA2&#39;s codec
<br>4. Send the frame<br>It seems to me, that it follows these steps anyway, the question is:<br><span style="font-style: italic;"><span style="text-decoration: underline;">Will Asterisk retranslate the frame ua1-&gt;slin-&gt;au2, if the codecs of the 1-st user and the 2-nd are the same? I need him do not touch the frames, just retransmit them as is.
</span><br></span><span><br>-- <br>Best Regards<br>Alexander Olekhnovich
</span><br></span></div>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com
</a> --
<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">



http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com</a> --<br><br>


asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br></blockquote></div><br><br clear="all"><br></span></div><span>-- <br>Best Regards<br>Alexander Olekhnovich
</span><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Easynews.com</a> --
<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br>
</span></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com
</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Alexander Olekhnovich