[pjsip] Creating a Conference-MESH

Benny Prijono bennylp at pjsip.org
Fri Nov 16 03:21:48 EST 2007

Thomas Plotkowiak wrote:
> A very basic problem but I struggle to find an elegant solution:
> I have a couple of PCs I want to connect in a conference, I would like 
> to connect them in a mesh manner so speaking of:
> A  ---  B
> |    X    |
> C ----  D
> So everybody is connected to everybody and sends his microphone stream 
> to those and receives his microphone stream from those.
> What I implemented so far was that each client holds a conference and 
> each incoming call is added to this conference, which works fine, but I 
> have to do the setup phase on each client manuall so  for example doing 
> a  call from <> to 
> <> and <> and so on...
> So here my proposition for my way to "autoconfigure" this mesh:
> Each client autoaccepts incoming calls and puts them into his conference.
> Each client has a struct containing all IP adresses.
> Each client tries to connect to all of those adresses, except:
> a) his own one
> b) the ones which he already accepted the incoming connection with.
> How do i find out to which of those I am already connected?

By "connected", did you mean connected in the conference bridge? If 
so, then you don't need to. Just connect the slot as usual; if 
connection is already established, the function will do nothing and 
just return PJ_SUCCESS.


> Cheers
> Thomas
> ------------------------------------------------------------------------
> _______________________________________________
> 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

Benny Prijono

More information about the pjsip mailing list