Module: sems Branch: master Commit: c96bf2961cba8e0750fccf4b4e11f23a96560ff0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=c96bf2961cba8e0750fccf4b4e11f23a96560ff0
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Fri Jul 16 00:18:01 2010 +0200 adapt b2b_connect to new onSipReply format --- apps/examples/b2b_connect/b2b_connect.cpp | 10 ++++------ apps/examples/b2b_connect/b2b_connect.h | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/examples/b2b_connect/b2b_connect.cpp b/apps/examples/b2b_connect/b2b_connect.cpp index 6aaef64..bde20ab 100644 --- a/apps/examples/b2b_connect/b2b_connect.cpp +++ b/apps/examples/b2b_connect/b2b_connect.cpp @@ -286,13 +286,11 @@ inline UACAuthCred* b2b_connectCalleeSession::getCredentials() { return &credentials; } -void b2b_connectCalleeSession::onSipReply(const AmSipReply& reply) { - int status_before = dlg.getStatus(); - AmB2ABCalleeSession::onSipReply(reply); - int status = dlg.getStatus(); +void b2b_connectCalleeSession::onSipReply(const AmSipReply& reply, int old_dlg_status) { + AmB2ABCalleeSession::onSipReply(reply, old_dlg_status); - if ((status_before == AmSipDialog::Pending)&& - (status == AmSipDialog::Disconnected)) { + if ((old_dlg_status == AmSipDialog::Pending)&& + (dlg.getStatus() == AmSipDialog::Disconnected)) { DBG("status change Pending -> Disconnected. Stopping session.\n"); setStopped(); } diff --git a/apps/examples/b2b_connect/b2b_connect.h b/apps/examples/b2b_connect/b2b_connect.h index 487fa29..83d39bc 100644 --- a/apps/examples/b2b_connect/b2b_connect.h +++ b/apps/examples/b2b_connect/b2b_connect.h @@ -88,7 +88,7 @@ class b2b_connectCalleeSession AmSipRequest invite_req; protected: - void onSipReply(const AmSipReply& reply); + void onSipReply(const AmSipReply& reply, int old_dlg_status); public: b2b_connectCalleeSession(const string& other_tag, _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
