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

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 4f67669..607ffe0 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