<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body>
<br>
Binary mathematics.... You can think of 1<<5 as 2 to the 5th
power. <br>
<br>
1<<0 be 1 <br>
1<<1 be 2<br>
1<<2 be 4<br>
1<<3 be 8<br>
1<<4 be 16<br>
1<<5 be 32<br>
<br>
<br>
Perhaps there might need to be a slightly more friendly message, but
remember its just a debug message.<br>
<br>
<br>
<br>
Jeremy McNamara<br>
<br>
<br>
John Vozza wrote:<br>
<blockquote type="cite"
cite="midPine.LNX.4.33.0303141541400.21995-100000@mike.netrom.com">
<pre wrap="">Thanks for the feedback but I'm still lost on this one.... (Forgive my
ignorance please)
I don't understand how "#define AST_FORMAT_ADPCM (1 << 5)" becomes
a "format = 32" in the * console display.
Regards
John
-------------------------------------------------------------------------
NetRom Internet Services                        973-208-1339 voice
<a class="moz-txt-link-abbreviated" href="mailto:john@netrom.com">john@netrom.com</a>                                        973-208-0942 fax
<a class="moz-txt-link-freetext" href="http://www.netrom.com">http://www.netrom.com</a>
-------------------------------------------------------------------------
On Fri, 14 Mar 2003, Martin Pycko wrote:
</pre>
<blockquote type="cite">
<pre wrap="">The formats that asterisk uses are #define'd in
asterisk/include/asterisk/frame.h
RTP formats are #define'd in asterisk/rtp.c
regards
Martin
On Fri, 14 Mar 2003, John Vozza wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I've been trying to find a list of codec "format numbers" so I can more
clearly understand the following message;
Accepting AUTHENTICATED call from xxx.xxx.xxx.xxx, requested format = 4,
actual format = 4
I've seen 4, 32, 512 and I think a few others. For example I think format
32 equal ADPCM but what are the others?
TIA
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
Asterisk-Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Asterisk-Users@lists.digium.com">Asterisk-Users@lists.digium.com</a>
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
<br>
</body>
</html>