[pjsip] Example "Simple PJSUA" without soundcard

Benny Prijono bennylp at pjsip.org
Fri Sep 28 12:34:32 EDT 2007

B. van Klinken wrote:
> Hello Benny,
> Last week if been trying to make the "Simple PJSUA" without the soundcard,
> but with a "Memory/Buffer-based Capture Port" and a "Memory/Buffer-based
> Playback Port", but it don't get it working, and also i don't really know if
> about what i do is correct. E.g. do i also have to create a conference
> bridge in the "Simple PJSUA" or is it already created in the PJSUA library.
> ALso i don's know about clearing and deleting what object at the end of the
> program.

Conference bridge is always created internally by PJSUA-LIB, which 
Simple-PJSUA is based on.

> Is it possible that you modify the "Simple PJSUA" and send this file to me?
> For you it is propably very easy and propably does not take much time.

There are couple of FAQ entries relevant to this, please check it out:

This is about plugging a media port into PJSUA's conference bridge:

This is about manipulating audio samples using callback:

You're probably right that it won't take much time for me to write a 
complete program for you, but once everybody asks for the same 
thing, I won't be having much time left to do anything else! So lets 
start with the samples from the FAQ and work on the issues.


> I would very much appreciate it. When i have such a working example, i'm
> pretty sure that i then can create the things we like to make.
> So if possible modify the PJSUA in such a way that the audio in received
> into a callback function where the audio bytes are e.g. only send to 'cout'.
> And for the other audio direction, to have a callback funtion where e.g. you
> have an array of nn bytes which are cylic send into the pjsip stack.
> I hope you can help me.
> Regards,
> B. van Klinken

More information about the pjsip mailing list