[Asterisk-video] can't hear amr audio
Klaus Darilion
klaus.mailinglists at pernau.at
Mon Jul 14 13:24:10 CDT 2008
Andrew Buchanan wrote:
> 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.
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
>
> 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
More information about the asterisk-video
mailing list