PJMEDIA conference bridge - direct port?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alex,

On 19-Dec-11 09:33, Alex Balashov wrote:
> I'm still having trouble visualising how this actually works.  I
> don't suppose you have any stubbed-out examples?
> 
> Also, does this mean that ultimately, the reverse phase port should
> be the only connected member of the conference bridge?
> 

the splitter port is the one connected to the bridge. That port is
in sync with the bridge. You'll use it's slot ID to do the mixing.
The reverse port is the port you'll async and exclusively read/write
from/to.
The bridge is just aware of the splitter (slot)...

pjmedia_port* sc, *rev;
int slot;
pjmedia_splitcomb_create(...,&sc);
pjmedia_splitcomb_create_rev_channel(pool,sc,..,&rev);
pjsua_conf_add_port(.., sc,&slot);

/* async write */
pjmedia_frame rdf;
rdf.buf = ..;
rdf.size= ..;
rdf.type= ..;
pjmedia_port_put_frame (rev,&rdf);

/* read */
pjmedia_frame wrf;
..
pjmedia_port_get_frame (rev,&wrf);

Cheers,
Alain

-- 
                            ""
                          (o)(o)
                _____o00o__(__)__o00o_____
3072D/146D10DE 2011-09-29    Alain Totouom  <totouom at gmx.de>
PGP Fingerprint 39A4F092 FFA7C746 CC305CB0 69091911 146D10DE



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux