rport function is not calling

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

 



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-snd

void 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++;
}

The result is ok, and i have sound in both sound card 1 and 2 with diferrent call sources.

I have a board with a SOC that 2 sound ports are enabled, so there are 2 sound cards on it exactly like PC. but when i run code mentioned above, there aren't any sound from embedded board.

I debugged the library and found that in PC when functions like get_frame and put_frame called the functions rport_put_frame and rport_get_frame are also called respectively.

but in embedded board only get_frame and put_frame functions are called.

what is the reason for this behaviour and how can i solve this issue?

thanks

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[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