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

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Sat Feb 19 22:59:08 2011 +0100

exposes the first VIA header in AmSipMsg::via1.

patch by Robert Szokovacs.

---

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

diff --git a/core/AmSipMsg.h b/core/AmSipMsg.h
index f1f8d80..7316399 100644
--- a/core/AmSipMsg.h
+++ b/core/AmSipMsg.h
@@ -16,6 +16,7 @@ class _AmSipMsgInDlg
   string       contact;
   string       content_type;
 
+  string       via1;
   string       hdrs;
   string       body;
   unsigned int cseq;
diff --git a/core/SipCtrlInterface.cpp b/core/SipCtrlInterface.cpp
index b941640..ea1dd63 100644
--- a/core/SipCtrlInterface.cpp
+++ b/core/SipCtrlInterface.cpp
@@ -705,6 +705,8 @@ 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