o check for cseq

o added monitoring


git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1274 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 18 years ago
parent 3888b21c2f
commit 61e3d3b36c

@ -179,7 +179,7 @@ bool AuthB2BDialog::onOtherReply(const AmSipReply& reply)
{
bool ret = false;
if (m_state == BB_Dialing) {
if ((m_state == BB_Dialing) && (reply.cseq == invite_req.cseq)) {
if (reply.code < 200) {
DBG("Callee is trying... code %d\n", reply.code);
}
@ -280,6 +280,18 @@ void AuthB2BDialog::createCalleeSession()
DBG("Created B2BUA callee leg, From: %s\n",
from.c_str());
if (AmConfig::LogSessions) {
INFO("Starting B2B callee session %s app %s\n",
callee_session->getLocalTag().c_str(), invite_req.cmd.c_str());
}
MONITORING_LOG5(other_id.c_str(),
"app", invite_req.cmd.c_str(),
"dir", "out",
"from", callee_dlg.local_party.c_str(),
"to", callee_dlg.remote_party.c_str(),
"ruri", callee_dlg.remote_uri.c_str());
callee_session->start();
AmSessionContainer* sess_cont = AmSessionContainer::instance();

Loading…
Cancel
Save