Bug fixed. Set error=offline when route to an alternative number and all its accounts are offline.
git-svn-id: http://voip.null.ro/svn/yate@3668 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
092c043194
commit
b6786f8f80
|
@ -172,7 +172,7 @@ bool UnRegistHandler::received(Message &msg)
|
|||
NamedList* nl = s_accounts.getSection(username);
|
||||
if (!nl)
|
||||
return false;
|
||||
Debug("RegFile",DebugAll,"Removing user %s, reson unregistered",username.c_str());
|
||||
Debug("RegFile",DebugAll,"Removing user %s, reason unregistered",username.c_str());
|
||||
s_accounts.clearSection(username);
|
||||
return true;
|
||||
}
|
||||
|
@ -241,6 +241,10 @@ bool RouteHandler::received(Message &msg)
|
|||
}
|
||||
if (count > 1)
|
||||
data = "fork ";
|
||||
if (count == 0) {
|
||||
msg.setParam("error","offline");
|
||||
break;
|
||||
}
|
||||
data << d;
|
||||
} else {
|
||||
data = ac->getValue("data");
|
||||
|
|
Loading…
Reference in New Issue