From 90eb3c6011cdaa34704d9cafade35c320e16ee1e Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sun, 20 Mar 2011 21:34:28 +0100 Subject: [PATCH] b/f: enables correct SIP dialog processing. --- core/AmSession.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/AmSession.cpp b/core/AmSession.cpp index cb92abf6..d0352250 100644 --- a/core/AmSession.cpp +++ b/core/AmSession.cpp @@ -844,16 +844,12 @@ void AmSession::onSipRequest(const AmSipRequest& req) catch(const string& s) { ERROR("%s\n",s.c_str()); setStopped(); - AmSipDialog::reply_error(req, 500, SIP_REPLY_SERVER_INTERNAL_ERROR, "", - dlg.next_hop_for_replies ? dlg.next_hop_ip : "", - dlg.next_hop_for_replies ? dlg.next_hop_port : 0); + dlg.reply(req, 500, SIP_REPLY_SERVER_INTERNAL_ERROR); } catch(const AmSession::Exception& e) { ERROR("%i %s\n",e.code,e.reason.c_str()); setStopped(); - AmSipDialog::reply_error(req,e.code, e.reason, e.hdrs, - dlg.next_hop_for_replies ? dlg.next_hop_ip : "", - dlg.next_hop_for_replies ? dlg.next_hop_port : 0); + dlg.reply(req,e.code, e.reason, e.hdrs); } if(detached.get() && !getStopped()){