<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Klaus and Andrew,<br>
<br>
I've just taken a quick look at the code, but I think that the code was
there to be able to choose between the different codecs offered
(without transcoding)<br>
Now that we have support for amr in asterisk perhaps could be changed
for something like ast_get_best_ codec or ast_codec_choose.<br>
<br>
BR<br>
Sergio<br>
<br>
<br>
Klaus Darilion escribió:<br>
<blockquote cite="mid:487B99CA.6050805@pernau.at" type="cite">
<pre wrap="">Andrew Buchanan wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Klaus,
Thanks for your reply.
The line
"audioFormat = sdp->audio->formats[i]->format;" (app_rtsp.c)
is never processed because the comparision
"if (sdp->audio->formats[i]->format & chan->nativeformats)" (app_rtsp.c)
fails.
</pre>
</blockquote>
<pre wrap=""><!---->
MAybe the bug is in this line. Actually it should work even if the sdp
does not contain a native format as Asterisk can do transcoding - I
think to do this the channels format has to be set to AMR (maybe with
ast_set_write_format()?)
Can you try changing the code?
regards
klaus
</pre>
<blockquote type="cite">
<pre wrap="">the value of format is 0x00002000
the value of nativeformats is 0x00580004
But the value written by
"ast_set_write_format(chan, audioFormat | videoFormat);"
Is nonzero as videoformat has a value 0x00400000
Andrew Buchanan
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
--Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-video mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-video">http://lists.digium.com/mailman/listinfo/asterisk-video</a>
</pre>
</blockquote>
<br>
</body>
</html>