From baa99a834e97a91dfbfea35c2a436b6b847ff20c Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Mon, 14 Feb 2011 14:11:09 +0100 Subject: [PATCH] fixes contact in parsed replies. --- core/SipCtrlInterface.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp index 4f67669b..607ffe04 100644 --- a/core/SipCtrlInterface.cpp +++ b/core/SipCtrlInterface.cpp @@ -530,6 +530,8 @@ inline bool SipCtrlInterface::sip_msg2am_reply(sip_msg *msg, AmSipReply &reply) list::iterator c_it = msg->contacts.begin(); reply.contact = c2stlstr((*c_it)->value); + ++c_it; + for(;c_it!=msg->contacts.end(); ++c_it){ reply.contact += "," + c2stlstr((*c_it)->value); }