fixes bug in dialout calls that created a wrong session mapping entry sessionid+localtag->localtag causing calls to itself not to work

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@484 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 0cc82d8dfb
commit ec7ff7a3de

@ -195,7 +195,7 @@ AmSession* AmSessionContainer::startSessionUAC(AmSipRequest& req, AmArg* session
}
session->start();
addSession_unsafe(req.callid,req.from_tag,req.from_tag,session);
addSession_unsafe(req.callid,"",req.from_tag,session);
// session does not get its own INVITE
// session->postEvent(new AmSipRequestEvent(req));
}
@ -376,7 +376,9 @@ bool AmSessionContainer::addSession_unsafe(const string& callid,
if(getSession(callid,remote_tag))
return false;
as_id_lookup[callid+remote_tag] = local_tag;
if (!remote_tag.empty())
as_id_lookup[callid+remote_tag] = local_tag;
return addSession_unsafe(local_tag,session);
}

Loading…
Cancel
Save