Module: sems
Branch: rco/multihomed
Commit: 6a33f6d41ec5bea84f21085c310eb8c61e306bdc
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=6a33f6d41ec5bea84f21085c310eb8c61e306bdc

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Feb 14 14:11:09 2011 +0100

fixes contact in parsed replies.

---

 core/SipCtrlInterface.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp
index 1b0b9db..8499a80 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<sip_header*>::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);
        }

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

Reply via email to