* removed some unnecessary debug infos.

* moved onOtherError to onOtherReply.


git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@54 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 20 years ago
parent cae727568b
commit 98e12fce87

@ -146,14 +146,14 @@ void AmB2BSession::onOtherBye(const AmSipRequest& req)
terminateLeg();
}
void AmB2BSession::onOtherError(const AmSipReply& reply)
void AmB2BSession::onOtherReply(const AmSipReply& reply)
{
terminateLeg();
if(reply.code >= 300)
terminateLeg();
}
void AmB2BSession::terminateLeg()
{
//clear_other();
setStopped();
dlg.bye();
}
@ -221,9 +221,10 @@ void AmB2BCallerSession::onB2BEvent(B2BEvent* ev)
reinviteCaller(reply);
}
else {
onOtherError(reply);
terminateOtherLeg();
}
onOtherReply(reply);
break;
default:

@ -109,8 +109,8 @@ protected:
// Other leg received a BYE
virtual void onOtherBye(const AmSipRequest& req);
// INVITE from other leg failed
virtual void onOtherError(const AmSipReply& reply);
// INVITE from other leg has been replied
virtual void onOtherReply(const AmSipReply& reply);
AmB2BSession()
: sip_relay_only(true)

@ -395,9 +395,7 @@ void AmSession::putDtmfAudio(const unsigned char *buf, int size, int user_ts)
void AmSession::onDtmf(int event, int duration_msec)
{
// if (dialog_st.get())
// dialog_st->onDtmf(event, duration_msec);
// AmDialogState::onDtmf(event, duration_msec);
DBG("AmSession::onDtmf(%i,%i)\n",event,duration_msec);
}
void AmSession::clearAudio()

@ -217,7 +217,7 @@ void AmSessionSchedulerThread::processAudio(unsigned int ts)
if(s->rtp_str.checkInterval(ts)){
DBG("ts = %u\n",ts);
//DBG("ts = %u\n",ts);
int ret = s->rtp_str.receive(ts);
if(ret < 0){
switch(ret){

Loading…
Cancel
Save