Module: sems
Branch: master
Commit: 2c0ae59cb7b363db8f28617c9d39cdd66151b2a8
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=2c0ae59cb7b363db8f28617c9d39cdd66151b2a8

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Sun Mar 20 21:34:28 2011 +0100

b/f: enables correct SIP dialog processing.

---

 core/AmSession.cpp |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/core/AmSession.cpp b/core/AmSession.cpp
index cb92abf..d035225 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()){

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to