Re: [Asterisk-Users] Codec Formats

2003-03-15 Thread Mark Spencer
I don't understand how #define AST_FORMAT_ADPCM(1 5) becomes a format = 32 in the * console display. 1 shift left 5 == 2 to the power of 5 = 32. Mark ___ Asterisk-Users mailing list [EMAIL PROTECTED]

[Asterisk-Users] Codec Formats

2003-03-14 Thread John Vozza
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

Re: [Asterisk-Users] Codec Formats

2003-03-14 Thread Martin Pycko
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: I've been trying to find a list of codec format numbers so I can more clearly understand the following message;

Re: [Asterisk-Users] Codec Formats

2003-03-14 Thread John Vozza
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

Re: [Asterisk-Users] Codec Formats

2003-03-14 Thread Steven Critchfield
On Fri, 2003-03-14 at 14:44, John Vozza wrote: 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. 1 5 means to shift 1, 5 bits to the left.

Re: [Asterisk-Users] Codec Formats

2003-03-14 Thread Jeremy McNamara
Binary mathematics You can think of 15 as 2 to the 5th power. 10 be 1 11 be 2 12 be 4 13 be 8 14 be 16 15 be 32 Perhaps there might need to be a slightly more friendly message, but remember its just a debug message. Jeremy McNamara John Vozza wrote: Thanks for the feedback

Re: [Asterisk-Users] Codec Formats

2003-03-14 Thread Steve Kann
On Fri, Mar 14, 2003 at 03:44:46PM -0500, John Vozza wrote: 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. 2*2*2*2*2 = 32. Okay, less