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)