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
|
@ -2441,7 +2441,7 @@ bool JBModule::received(Message& msg, int id)
|
|||
if (!target || target == name())
|
||||
return Module::received(msg,id);
|
||||
// Check additional commands
|
||||
if (!target.startSkip(name(),false))
|
||||
if (!target.startSkip(name(),true))
|
||||
return false;
|
||||
target.trimBlanks();
|
||||
if (!target)
|
||||
|
|
|
@ -2347,7 +2347,7 @@ bool H323Driver::received(Message &msg, int id)
|
|||
{
|
||||
if (id == Status) {
|
||||
String target = msg.getValue("module");
|
||||
if (target && target.startsWith(name()) && !target.startsWith(prefix()))
|
||||
if (target && target.startsWith(name(),true) && !target.startsWith(prefix()))
|
||||
msgStatus(msg);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1347,8 +1347,10 @@ bool YIAXDriver::received(Message& msg, int id)
|
|||
else
|
||||
if (id == Status) {
|
||||
String target = msg.getValue("module");
|
||||
if (target && target.startsWith(name()) && !target.startsWith(prefix()))
|
||||
if (target && target.startsWith(name(),true) && !target.startsWith(prefix())) {
|
||||
msgStatus(msg);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return Driver::received(msg,id);
|
||||
}
|
||||
|
|
|
@ -4236,9 +4236,9 @@ bool SIPDriver::received(Message& msg, int id)
|
|||
}
|
||||
else if (id == Status) {
|
||||
String target = msg.getValue("module");
|
||||
if (target && target.startsWith(name()) && !target.startsWith(prefix())) {
|
||||
if (target && target.startsWith(name(),true) && !target.startsWith(prefix())) {
|
||||
msgStatus(msg);
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return Driver::received(msg,id);
|
||||
|
|
Loading…
Reference in New Issue