<br><br>
<div class="gmail_quote">On Mon, Jan 4, 2010 at 1:46 PM, Kevin P. Fleming <span dir="ltr">&lt;<a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">hadi motamedi wrote:<br><br>&gt; Sorry . I didn&#39;t get the point clearly . In the SIP Invite message , it<br>&gt; says &quot;my audio endpoint is IP x.x.x.x port x, and I can use codecs<br>&gt; A,B,C&quot;. The remote endpoint responds with a 200 OK, saying &quot;my audio<br>
&gt; stream is at IP y.y.y.y port y, and I choose codec B&quot;. Can you please do<br>&gt; me favor and let me know if my understanding is right or not ?<br>&gt; Thank you<br><br></div>No, you are not understanding the SDP offer/answer model properly. If<br>
one endpoint offers codecs A, B and C in its SDP, it is willing to<br>*receive* media in those formats. The receiver of that offer can choose<br>to send media to the offerer in any of those formats, at any time. If<br>the answering endpoint includes only codec B in its SDP, then it is<br>
willing to *receive* only codec B. In that scenario, it is possible for<br>media to flow from endpoint 1 to endpoint 2 using codec B, and from<br>endpoint 2 to endpoint 1 using codec A (or C), but this will not happen<br>
if Asterisk is an endpoint in this scenario.<br><br>When Asterisk receives a media frame, if the format of that frame is not<br>the format that it is currently sending to the other endpoint, it will<br>switch to that format automatically. If it cannot do so because the<br>
other endpoint did not offer to receive that format, then the call&#39;s<br>audio will probably fail. This is the reason why I responded before that<br>Asterisk does not support asymmetric formats in a media session.<br><br>
In reality, it is extremely uncommon for a SIP endpoint to want to send<br>media in a format that it is not also willing to receive; in fact, I<br>can&#39;t say I&#39;ve ever seen this situation arise in any testing I&#39;ve done<br>
or in any issues reported in our issue tracker.<br><font color="#888888"><br>--<br></font>
<div>
<div></div>
<div class="h5">Kevin P. Fleming<br>Digium, Inc. | Director of Software Technologies<br>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA<br>skype: kpfleming | jabber: <a href="mailto:kpfleming@digium.com">kpfleming@digium.com</a><br>
Check us out at <a href="http://www.digium.com/" target="_blank">www.digium.com</a> &amp; <a href="http://www.asterisk.org/" target="_blank">www.asterisk.org</a><br><br>_______________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">http://www.api-digital.com</a> --<br>
<br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br>  <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div>
<div><br> </div>
<div>Thank you very much for correcting me .</div>
<div> </div>