Hi Ryan, yes, there are no callbacks, no locks so it does not suffer from deadlocks. The only thing you must be aware off is blocking I/O to be completed quickly or use non-blocking on UNIX. Cheers, - Vali Dne 5.3.2014 22:28, Ryan Detzel napsal(a): > 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 > <mailto: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 <mailto:pjsip at lists.pjsip.org> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > _______________________________________________ > 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 >