Hey Vali, Thanks for this, it's great you're adding this to the project. Will this solve the issues with deadlocks? Thanks On Wed, Mar 5, 2014 at 3:45 PM, Tom?? Valenta <vali at kamarad.cz> wrote: > Hi, > > some time ago I posted a patch that added audio put and get frame callback > to PJSUA, even to the Python wrapper. It suffered from deadlocks and > occasional crashes (especially with more calls) so yesterday I posted a new > version that behaves better, but still deadlocks or crashes might occur. > > I revised the idea of accessing audio frames at a high level and created > file descriptor media port available in PJSUA, Python_PJSUA and PJSUA2, see > attached patch. > > Key features: > * It works similarly to audio recorder or player. > * It works with raw data -- no headers or format handling. > * It can read/write from/to a file descriptor or Windows file handle. > * File descriptor may be virtually everything: file, pipe, socket etc. > * On UNIX it can operate either in blocking mode or in non-blocking mode > with buffering. > * It can be used to communicate the data with the same or different > process. > > Feel free to use it if you find it useful. > Examples are in > pjsip_apps/src/python/samples/audio_fd.py > and > pjsip_apps/src/swig/python/audio_fd.py. > > Benny or other authors, do you think it can be integrated to the trunk? I > would be helpful and grateful. > > Cheers, > - Vali > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140305/e7c20dd1/attachment-0001.html>