thanks Nanang it's working now. On Mon, Mar 24, 2008 at 11:12 AM, Nanang Izzuddin <nanang.izzuddin at gmail.com> wrote: > Yes, you guessed it right, you need to connect the ports. > > pjmedia_conf_create(...); > /* add port & retrieve the slot number */ > pjmedia_conf_add_port(g_conf_bridge,inv->pool, > media_port,NULL,&media_port_slot); > /* connect stream from sound device/master port to media_port */ > pjmedia_conf_connect(g_conf_bridge, 0, media_port_slot, 0); > /* connect stream from media_port to sound device/master port */ > pjmedia_conf_connect(g_conf_bridge, media_port_slot, 0, 0); > > /* get audio level flowing from media_port to conf */ > pjmedia_conf_get_signal_level(g_conf_bridge, media_port_slot, NULL, > &rx_level); > > cheers, > nanang > > > On 23/03/2008, Rameshwar Thakurathi <rameshwar at gmail.com> wrote: > > i've bn trying to use conference bridge but don't know how to connect > the > > source and sink port. > > > > I've added media port to the conference bridge but now audio is being > heard > > at either side. I guess i need to connect source and sink port. > > > > Could you please tell me how to get the relevant source and sink port ? > > > > this is how i tried to implement it > > status = pjmedia_conf_create( > > inv->pool, /* > > pool */ > > 32, > > //-1, > > /* sound dev id */ > > media_port->info.clock_rate, /* clock rate > > */ > > media_port->info.channel_count, /* channel count > > */ > > media_port->info.samples_per_frame, /* samples per > > frame*/ > > media_port->info.bits_per_sample, /* bits per > sample > > */ > > 0, /* > > options */ > > &g_conf_bridge); > > if (status != PJ_SUCCESS) { > > app_perror( THIS_FILE, "Unable to create conference bridge", > > status); > > PJ_LOG(3,(THIS_FILE, "%d %d %d %d", > > media_port->info.clock_rate, /* clock rate > > */ > > media_port->info.channel_count, /* channel count > > */ > > media_port->info.samples_per_frame, /* samples per > > frame*/ > > media_port->info.bits_per_sample /* bits per > sample > > */ > > )); > > return; > > } > > status = pjmedia_conf_add_port(g_conf_bridge,inv->pool, > > media_port,NULL,NULL); > > > > is this the correct way of implementing conference bridge ? > > > > > > > > > > On Mon, Mar 17, 2008 at 7:11 PM, Nanang Izzuddin < > nanang.izzuddin at gmail.com> > > wrote: > > > > > With conference bridge, you can use API to get RX & TX signal level > > > from specific port. > > > So checking RX level of the sound device port periodically may cover > your > > need. > > > > > > nanang > > > > > > > > > > > > > > > > > > On 17/03/2008, Rameshwar Thakurathi <rameshwar at gmail.com> wrote: > > > > hi! > > > > > > > > Is it possible to detect whether the anoter party is transmitting > voice > > or > > > > not ? > > > > I want to switch on my speakers only if some body is speaking > otherwise > > > > speakers have to be turned off. > > > > > > > > How can this be implemented ? > > > > > > > > -- > > > > cheers, > > > > rameshwar > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > -- > > cheers, > > rameshwar > > _______________________________________________ > > 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 > > > > > > _______________________________________________ > 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 > -- cheers, rameshwar -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080324/4e46259f/attachment.html