Hi
I have a PC with 2 sound cards. i used this snippet of code to stablish a connection as described in https://trac.pjsip.org/repos/wiki/FAQ#multi-sndvoid MyCall::onCallMediaState(OnCallMediaStateParam &prm)
{
pjmedia_snd_port *sndport = NULL;
pjmedia_port *splitcomb = NULL;
pjmedia_port *revch = NULL;
int slot;
static int sound_device = 1;
pjsua_call_id call_id= this->getInfo().id;
pjsua_call_info ci;
pjsua_call_get_info(call_id, &ci);
pj_status_t status;
status = pjmedia_snd_port_create(pjpool,sound_device,sound_device,8000,1,160,16,0,&sndport);
status = pjmedia_splitcomb_create(pjpool,8000,1,160,16,0,&splitcomb);
status = pjmedia_splitcomb_create_rev_channel(pjpool, splitcomb,0,0, &revch);
status = pjsua_conf_add_port(pjpool, revch, &slot);
status = pjmedia_snd_port_connect(sndport, splitcomb);
pjsua_conf_connect(ci.conf_slot,slot);
pjsua_conf_connect(slot, ci.conf_slot);
sound_device++;
}
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org