G 723

Alejandro Fernández Japkin arpatec at gmx.net
Wed Dec 13 01:09:17 CET 2006


 Thanks for the reply, still..
 I'd really need an specific class/function, which i haven't found, 
 to make the g723 implementation know which of its internal operations implement.
 
 Such as:
     switch (SomeClass -> encoding) {

	 	case AUDIO_ENCODING_LINEAR:
			bla bla;
			break;
		case AUDIO_ENCODING_ALAW:
			bla bla;
			break;
		case AUDIO_ENCODING_ULAW:
		
		default:
			return (AUDIO_ERR_ENCODING);
		}
 
 And giving up. Please: any non straight answer is useless to me, since i
 do know how to work this out, just don't have the resources (a specific Class) to handle & do it.


PS: patents state a profit proportional to the amount of time in which commercial systems stablished
    communication using g723 and g279, which is, in no way, any of my means. The code itself is under OpenSolaris License.



On Sat, 9 Dec 2006 14:04:02 +0100
Cesc <cesc.santa at gmail.com> wrote:

> Hi,
> 
> Interesting effort ...
> You are right, we support codecs in the saphe of plug-ins .... it
> shall be not extremely complicated to add g723 ...
> look into libminisip ... there you can find the base class Codec as
> well as the implementation of the other codecs ...
> As for the handling of codecs, you should take a look in the
> libminisip/mediahandler and libminisip/sounddevice ... in the sound
> device is where the audio processing is realized (buffering, soundcard
> access ... )
> 
> Good luck!
> 
> Cesc
> 
> On 12/7/06, Alejandro Fernández Japkin <arpatec at gmx.net> wrote:
> >
> >
> >  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
> >
> > _______________________________________________
> > Minisip-devel mailing list
> > Minisip-devel at minisip.org
> > http://lists.minisip.org/mailman/listinfo/minisip-devel
> >
> >
> >
> >
> _______________________________________________
> Minisip-devel mailing list
> Minisip-devel at minisip.org
> http://lists.minisip.org/mailman/listinfo/minisip-devel


More information about the Minisip-devel mailing list