Fixed checking if a engine.status module is indeed intended for that module. Fixed bug: don't print for a second time the status message for IAX module.
git-svn-id: http://voip.null.ro/svn/yate@4221 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
3a6bb55910
commit
7a374f6c37
4 changed files with 7 additions and 5 deletions
|
@ -2441,7 +2441,7 @@ bool JBModule::received(Message& msg, int id)
|
||||||
if (!target || target == name())
|
if (!target || target == name())
|
||||||
return Module::received(msg,id);
|
return Module::received(msg,id);
|
||||||
// Check additional commands
|
// Check additional commands
|
||||||
if (!target.startSkip(name(),false))
|
if (!target.startSkip(name(),true))
|
||||||
return false;
|
return false;
|
||||||
target.trimBlanks();
|
target.trimBlanks();
|
||||||
if (!target)
|
if (!target)
|
||||||
|
|
|
@ -2347,7 +2347,7 @@ bool H323Driver::received(Message &msg, int id)
|
||||||
{
|
{
|
||||||
if (id == Status) {
|
if (id == Status) {
|
||||||
String target = msg.getValue("module");
|
String target = msg.getValue("module");
|
||||||
if (target && target.startsWith(name()) && !target.startsWith(prefix()))
|
if (target && target.startsWith(name(),true) && !target.startsWith(prefix()))
|
||||||
msgStatus(msg);
|
msgStatus(msg);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1347,8 +1347,10 @@ bool YIAXDriver::received(Message& msg, int id)
|
||||||
else
|
else
|
||||||
if (id == Status) {
|
if (id == Status) {
|
||||||
String target = msg.getValue("module");
|
String target = msg.getValue("module");
|
||||||
if (target && target.startsWith(name()) && !target.startsWith(prefix()))
|
if (target && target.startsWith(name(),true) && !target.startsWith(prefix())) {
|
||||||
msgStatus(msg);
|
msgStatus(msg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return Driver::received(msg,id);
|
return Driver::received(msg,id);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4236,9 +4236,9 @@ bool SIPDriver::received(Message& msg, int id)
|
||||||
}
|
}
|
||||||
else if (id == Status) {
|
else if (id == Status) {
|
||||||
String target = msg.getValue("module");
|
String target = msg.getValue("module");
|
||||||
if (target && target.startsWith(name()) && !target.startsWith(prefix())) {
|
if (target && target.startsWith(name(),true) && !target.startsWith(prefix())) {
|
||||||
msgStatus(msg);
|
msgStatus(msg);
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Driver::received(msg,id);
|
return Driver::received(msg,id);
|
||||||
|
|
Loading…
Reference in a new issue