Module: sems Branch: master Commit: 94afe3b7678bd9a04e1f3c070fbc16f5c87fd7be URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=94afe3b7678bd9a04e1f3c070fbc16f5c87fd7be
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Jun 20 20:11:40 2011 +0200 fixed AmUAC API to accept const string& for app name --- core/AmUAC.cpp | 5 +++-- core/AmUAC.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/AmUAC.cpp b/core/AmUAC.cpp index a5f3bc0..e9ba5e9 100644 --- a/core/AmUAC.cpp +++ b/core/AmUAC.cpp @@ -32,7 +32,7 @@ #include "AmConfig.h" string AmUAC::dialout(const string& user, - string& app_name, + const string& app_name, const string& r_uri, const string& from, const string& from_uri, @@ -42,6 +42,7 @@ string AmUAC::dialout(const string& user, AmArg* session_params) { AmSipRequest req; + string m_app_name = app_name; req.user = user; req.method = "INVITE"; @@ -57,6 +58,6 @@ string AmUAC::dialout(const string& user, req.callid = AmSession::getNewId(); req.hdrs = hdrs; - return AmSessionContainer::instance()->startSessionUAC(req, app_name, session_params); + return AmSessionContainer::instance()->startSessionUAC(req, m_app_name, session_params); } diff --git a/core/AmUAC.h b/core/AmUAC.h index 3a4c3c6..a1d4ae7 100644 --- a/core/AmUAC.h +++ b/core/AmUAC.h @@ -39,7 +39,7 @@ using std::string; class AmUAC { public: static string dialout(const string& user, - string& app_name, + const string& app_name, const string& r_uri, const string& from, const string& from_uri, _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
