o using ADAPTIVE_PLAYOUT

o removing some stuff that is done by AmB2ABSession already


git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1152 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent 45ba561c5c
commit 00b6f26559

@ -76,7 +76,7 @@ b2b_connectDialog::b2b_connectDialog() // AmDynInvoke* user_timer)
AmB2ABCallerSession()
{
rtp_str.setPlayoutType(JB_PLAYOUT);
rtp_str.setPlayoutType(ADAPTIVE_PLAYOUT);
}
b2b_connectDialog::~b2b_connectDialog()
@ -237,28 +237,6 @@ AmB2ABCalleeSession* b2b_connectDialog::createCalleeSession()
"(uac_auth module loaded?)\n");
}
AmSipDialog& callee_dlg = sess->dlg;
other_id = AmSession::getNewId();
callee_dlg.local_tag = other_id;
callee_dlg.callid = AmSession::getNewId() + "@" + AmConfig::LocalIP;
// this will be overwritten by ConnectLeg event
callee_dlg.remote_party = dlg.local_party;
callee_dlg.remote_uri = dlg.local_uri;
// if given as parameters, use these
callee_dlg.local_party = from;
callee_dlg.local_uri = from;
DBG("Created B2BUA callee leg, From: %s\n",
from.c_str());
sess->start();
AmSessionContainer* sess_cont = AmSessionContainer::instance();
sess_cont->addSession(other_id,sess);
return sess;
}
@ -268,7 +246,7 @@ b2b_connectCalleeSession::b2b_connectCalleeSession(const string& other_tag,
credentials("", user, pwd), // domain (realm) is unused in credentials
AmB2ABCalleeSession(other_tag) {
rtp_str.setPlayoutType(JB_PLAYOUT);
rtp_str.setPlayoutType(ADAPTIVE_PLAYOUT);
setDtmfDetectionEnabled(false);
}
@ -295,10 +273,10 @@ void b2b_connectCalleeSession::onSendRequest(const string& method, const string&
void b2b_connectCalleeSession::onB2ABEvent(B2ABEvent* ev)
{
if (ev->event_id == B2ABConnectAudio) {
// delayed processing of first INVITE request
AmSession::onInvite(invite_req);
}
// if (ev->event_id == B2ABConnectAudio) {
// // delayed processing of first INVITE request
// AmSession::onInvite(invite_req);
// }
AmB2ABCalleeSession::onB2ABEvent(ev);
}

Loading…
Cancel
Save