From 3f4b1724cf10ac6ea74a0b7705218046035c2262 Mon Sep 17 00:00:00 2001 From: Peter Lemenkov Date: Tue, 18 May 2010 16:45:35 +0000 Subject: [PATCH] The AmSession::onSipReply virtualfunction has different arity. Signed-off-by: Peter Lemenkov git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1909 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- apps/gateway/GWSession.cpp | 4 ++-- apps/gateway/GWSession.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/gateway/GWSession.cpp b/apps/gateway/GWSession.cpp index 3524d0a4..38e2482e 100644 --- a/apps/gateway/GWSession.cpp +++ b/apps/gateway/GWSession.cpp @@ -90,7 +90,7 @@ void GWSession::onSipRequest(const AmSipRequest& req) } } -void GWSession::onSipReply(const AmSipReply& reply) { +void GWSession::onSipReply(const AmSipReply& reply, int old_dlg_status) { int status = dlg.getStatus(); DBG("GWSession::onSipReply: code = %i, reason = %s\n, status = %i\n", reply.code,reply.reason.c_str(),dlg.getStatus()); @@ -99,7 +99,7 @@ void GWSession::onSipReply(const AmSipReply& reply) { int ret=((mISDNChannel*)m_OtherLeg)->hangup(); } DBG("GWSession::onSipReply calling parent\n"); - AmSession::onSipReply(reply); + AmSession::onSipReply(reply, old_dlg_status); } void GWSession::on_stop() { diff --git a/apps/gateway/GWSession.h b/apps/gateway/GWSession.h index c0eade6f..535a6cfa 100644 --- a/apps/gateway/GWSession.h +++ b/apps/gateway/GWSession.h @@ -33,7 +33,7 @@ static GWSession* CallFromOutside(std::string &fromnumber, std::string &tonum void onBye(const AmSipRequest& req); //virtual void onSipEvent(AmSipEvent* sip_ev); void onSipRequest(const AmSipRequest& req); - void onSipReply(const AmSipReply& reply); + void onSipReply(const AmSipReply& reply, int old_dlg_status); //virtual void onRtpTimeout(); //virtual void onSendRequest(const string& method, const string& content_type, const string& body, string& hdrs, int flags, unsigned int cseq); //virtual void onSendReply(const AmSipRequest& req, unsigned int code,const string& reason,const string& content_type, const string& body,string& hdrs,int flags)