From 5818f8bcfd554dff1e27583012cc94c84a43400e Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Sat, 19 Feb 2011 22:59:08 +0100 Subject: [PATCH] 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(+) diff --git a/core/AmSipMsg.h b/core/AmSipMsg.h index f1f8d80c..73163996 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 b9416407..ea1dd632 100644 --- a/core/SipCtrlInterface.cpp +++ b/core/SipCtrlInterface.cpp @@ -705,6 +705,8 @@ void SipCtrlInterface::prepare_routes_uac(const list& routes, strin route_field += ", " + c2stlstr((*it)->value); } } + + req.via1 = c2stlstr(msg->via1->value); } void SipCtrlInterface::prepare_routes_uas(const list& routes, string& route_field)