Hey Alez, PJLIB actually has functionality to record audio and write to file, so one possible way to do this is to modify pjlib's write to file functionality to stream out to a serial line. For example, I know you can run pjsua with the --null-audio option to run it without an audio device and then record incoming calls to a wav file. The recfile sample executable has a basic example of recording from the microphone to a .wave file, you might start there to look at the pathway for how recording is done, and then modify as you need. On Mon, Feb 11, 2013 at 1:44 PM, MaeTech <maetech at email.it> wrote: > Hi there, > > I wanted to make a voip application for embedded devices, and wanted to > use Pjsip libraries. > This application won't use any gui, but simple i/o lines to start or stop > call. > > Embedded boards often don't have audio devices, or maybe have only audio > output, so I made a simple audio sampler with a microcontroller that > outputs the stream to a serial line (such as rs-232). > In linux it is easy to listen to the stream with "play /dev/ttyS0" (plus > some format parameter). > But if I want to use that stream with another application such as pjsip, > that's not so easy :( > > So I want to ask you a piece of advice. Is it simpler to add a module to > pjsip, or to make a kernel module to add a virtual sound card ? > > Thanks to all, > -alez > > > -- > Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP > autenticato? GRATIS solo con Email.it http://www.email.it/f > > Sponsor: > Voglia di Puzzle? Su MisterCupido.com troverai i "Puzzle Clementoni High > Quality" a partire da soli euro 8,30 > Clicca qui: http://adv.email.it/cgi-bin/**foclick.cgi?mid=12676&d=11-2<http://adv.email.it/cgi-bin/foclick.cgi?mid=12676&d=11-2> > > ______________________________**_________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/**mailman/listinfo/pjsip_lists.**pjsip.org<http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org> > -- *haomiao huang | * co-founder, product | Kuna Systems | 626.676.3940 | haomiao at kunasystems.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130212/f1721be7/attachment-0001.html>