CANCEL should be treated hop-by-hop.

sayer/1.4-spce2.6
Raphael Coeffic 16 years ago
parent fb86cab1bd
commit ae8a4707b8

@ -939,6 +939,15 @@ void AmB2BCallerSession::onSessionStart(const AmSipRequest& req)
AmB2BSession::onSessionStart(req);
}
void AmB2BCallerSession::onCancel()
{
if(dlg.getStatus() == AmSipDialog::Pending) {
terminateOtherLeg();
terminateLeg();
dlg.reply(invite_req, 487, "Request terminated");
}
}
void AmB2BCallerSession::connectCallee(const string& remote_party,
const string& remote_uri,
bool relayed_invite)

@ -308,6 +308,7 @@ class AmB2BCallerSession: public AmB2BSession
// @see AmSession
void onSessionStart(const AmSipRequest& req);
void onCancel();
// @see AmB2BSession
void terminateLeg();

Loading…
Cancel
Save