From 05f37164e8616a3de39cb270ad123937ad57ccde Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Tue, 27 Apr 2010 22:40:57 +0000 Subject: [PATCH] - fixes Route header for 200 ACKs. git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@1853 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmSipDialog.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/AmSipDialog.cpp b/core/AmSipDialog.cpp index 8fe1391d..d42bd721 100644 --- a/core/AmSipDialog.cpp +++ b/core/AmSipDialog.cpp @@ -704,9 +704,10 @@ int AmSipDialog::send_200_ack(const AmSipTransaction& t, req.hdrs += SIP_HDR_COLSP(SIP_HDR_MAX_FORWARDS) + int2str(AmConfig::MaxForwards) + CRLF; } - if(!route.empty()) - req.route = route; - + if(!route.empty()) { + req.route = SIP_HDR_COLSP(SIP_HDR_ROUTE) + route + CRLF; + } + if(!body.empty()) { req.content_type = content_type; req.body = body;