From 01a8e53ca22caf4a4417f6a34c6425985b86dbc5 Mon Sep 17 00:00:00 2001 From: yanmorin <yanmorin> Date: Wed, 5 Oct 2005 21:06:37 +0000 Subject: [PATCH] add fixes --- src/gui/server/request.h | 2 +- src/gui/server/requestfactory.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/server/request.h b/src/gui/server/request.h index 6e62afbefe..cf4d0c209c 100644 --- a/src/gui/server/request.h +++ b/src/gui/server/request.h @@ -65,7 +65,7 @@ public: bool argsAreValid = false; // Args are: account callid destination // acc1000 c10345 sip:test@test.com - if (iter != _argList.end() && iter->find("acc")==0) { + if (iter != _argList.end() && iter->length()!=0) { _account = *iter; _argList.pop_front(); iter = _argList.begin(); diff --git a/src/gui/server/requestfactory.cpp b/src/gui/server/requestfactory.cpp index 56c4440012..4225bb82bf 100644 --- a/src/gui/server/requestfactory.cpp +++ b/src/gui/server/requestfactory.cpp @@ -46,6 +46,7 @@ RequestFactory::create(const std::string& requestLine) } catch (...) { // if the create return an exception // we create a syntaxerror + return create("syntaxerror", sequenceId, tList); } } } -- GitLab