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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Mon Feb 21 11:53:30 2011 +0100

b/f: fixes compile errors introduced in last commit (5818f8bcfd).

---

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

diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp
index ea1dd63..e2f79ef 100644
--- a/core/SipCtrlInterface.cpp
+++ b/core/SipCtrlInterface.cpp
@@ -492,6 +492,8 @@ inline void SipCtrlInterface::sip_msg2am_request(const 
sip_msg *msg,
        }
     }
 
+    req.via1 = c2stlstr(msg->via1->value);
+
     req.remote_ip = 
get_addr_str(((sockaddr_in*)&msg->remote_ip)->sin_addr).c_str();
     req.remote_port = htons(((sockaddr_in*)&msg->remote_ip)->sin_port);
     req.local_ip = 
get_addr_str(((sockaddr_in*)&msg->local_ip)->sin_addr).c_str();
@@ -705,8 +707,6 @@ void SipCtrlInterface::prepare_routes_uac(const 
list<sip_header*>& routes, strin
            route_field += ", " + c2stlstr((*it)->value);
        }
     }
-
-    req.via1 = c2stlstr(msg->via1->value);
 }
 
 void SipCtrlInterface::prepare_routes_uas(const list<sip_header*>& routes, 
string& route_field)

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

Reply via email to