G 723

Alejandro Fernández Japkin arpatec at gmx.net
Thu Dec 7 11:48:35 CET 2006



 Without any straight&&clear documentation and a few minutes of intensive-histeric reading of code...
 I'm trying to figure out how to cleanly insert a g 723 codec into minisip, 
 which i have in a C implementation that, of course, does not match at all the way minisip handles codecs.
 If there is any work regarding this subject, i'd really want to know.

 I have serious issues with the mentioned g723.c, since it holds many unused functions such as an state update, and of course,
 a pointer to a state structure.

 The major problem shows up here :

 /* XXX - if linear, it had better be 16-bit! */
	if (in_header->encoding == AUDIO_ENCODING_LINEAR)  something, and if not, then 
  
            --else-- {
		char_ptr = (unsigned char *)in_buf;
	 	}
	   	

 in_header is a pointer to a structure of the Audio_hdr type, which belongs to the libaudio system from OpenSolaris.
 The first thing i'd need, in order to get this working, is to get this audio encoding data from SoundDevice or whatever
 inside minisip that handles such information, or to be sure that such watch point should always be TRUE. 

 This is shown in the encoding prototype for the implementation

 int
g723_encode(
	void		*in_buf,
	int		data_size,
	Audio_hdr	*in_header,
	unsigned char	*out_buf,
	int		*out_size,
	struct audio_g72x_state	*state_ptr)
{

 a state structure, an integer to count the leftover parts of the encoding process, and some type adventures. 
 The decoder is pretty much the same thing.

 It is stated that codecs works as plugins and bla bla bla. Still, they also have a "way", and need to be fitted so they can 
 work in it. 
 
 The problem basically is, that most sip carriers are no longer handling g711, and therefore the software is 
 becoming useless in certain scenarios, for certain purposes.  

 I'll attach a copy of the mentioned C file. 

 Thanks for any feedback
-------------- next part --------------
A non-text attachment was scrubbed...
Name: g723.c
Type: text/x-csrc
Size: 20481 bytes
Desc: not available
Url : http://lists.minisip.org/pipermail/minisip-devel/attachments/20061207/fa796834/g723.c


More information about the Minisip-devel mailing list