Two callers together

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

 



Hi,

I wrote a little application whith an incoming call and and a outgoing one.
I want to commute "full-duplex" both calls.

Here is my code :

//-------------------------------------------------------------
void TSvi::HandleUserCommuteMsg(TApplication *App)
//-------------------------------------------------------------
{
        TCall   *Call1, *Call2;

        Call1 = 
this->CallList->GetById(atoi(App->GetItemList()->GetItemValue("CallId1")));
        Call2 = 
this->CallList->GetById(atoi(App->GetItemList()->GetItemValue("CallId2")));

        _Logger->Log(LOG_INFO, "Commute %d <-> %d\n", 
Call1->GetCallId(), Call2->GetCallId());

        pjsua_conf_connect(pjsua_call_get_conf_port(Call1->GetCallId()), 
pjsua_call_get_conf_port(Call2->GetCallId()));
//      pjsua_conf_connect(pjsua_call_get_conf_port(Call2->GetCallId()), 
pjsua_call_get_conf_port(Call1->GetCallId()));
}

When I add the two "pjsua_conf_connect" lines as above, I get an 
horrible noise.
When one is commented (as above), I have a correct one-way conversation.
If I comment the other line, I get nothing.

What can it be ?

Regards,

Frederic




[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