Module: sems Branch: master Commit: b3ba07dfe465391dfec5f14feffcb29c8dfe0a31 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=b3ba07dfe465391dfec5f14feffcb29c8dfe0a31
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Mon Oct 17 17:02:36 2011 +0200 support v App-Params (P-App-Param: someval=something;somek) --- core/AmUtils.cpp | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/core/AmUtils.cpp b/core/AmUtils.cpp index 4ac4798..d886c39 100644 --- a/core/AmUtils.cpp +++ b/core/AmUtils.cpp @@ -928,8 +928,13 @@ void parse_app_params(const string& hdrs, map<string,string>& app_params) for (vector<string>::iterator it=items.begin(); it != items.end(); it++) { vector<string> kv = explode(*it, "="); - if (kv.size()==2) + if (kv.size() == 2) { app_params.insert(make_pair(kv[0], kv[1])); + } else { + if (kv.size() == 1) { + app_params.insert(make_pair(*it, string())); + } + } } } _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
