Commit 998078c9 authored by yanmorin's avatar yanmorin
Browse files

Remove the call name restriction
parent 506d1eae
...@@ -69,9 +69,7 @@ public: ...@@ -69,9 +69,7 @@ public:
_account = *iter; _account = *iter;
_argList.pop_front(); _argList.pop_front();
iter = _argList.begin(); iter = _argList.begin();
// a call method can only begin by 'c' since it's only the client that if (iter != _argList.end()) {
// call with method
if (iter != _argList.end() && (*iter)[0]=='c') {
_callId = *iter; _callId = *iter;
iter++; iter++;
// last arg is the destination // last arg is the destination
...@@ -100,7 +98,7 @@ public: ...@@ -100,7 +98,7 @@ public:
RequestGlobalCall(const std::string &sequenceId, const TokenList& argList) : Request(sequenceId, argList) { RequestGlobalCall(const std::string &sequenceId, const TokenList& argList) : Request(sequenceId, argList) {
TokenList::iterator iter = _argList.begin(); TokenList::iterator iter = _argList.begin();
if (iter != _argList.end() && ((*iter)[0]=='c' || (*iter)[0]=='s') ) { if (iter != _argList.end() && iter->length() != 0 ) {
_callId = *iter; _callId = *iter;
_argList.pop_front(); _argList.pop_front();
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment