apply signaller's Policies in EA signal manager before Execute Signals ...
This commit is contained in:
@@ -1778,6 +1778,57 @@ struct X121ProviderDescriptor
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Find Specific Signaller Index ...
|
||||
int FindSignallerIndex(ENUM_XSIGNAL_PROVIDERS name)
|
||||
{
|
||||
//
|
||||
int result = -1;
|
||||
|
||||
//
|
||||
// Converts Provided Signaller Name to String ...
|
||||
string strName = ToString(name);
|
||||
|
||||
//
|
||||
result = FindSignallerIndex(strName);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Find Specific Signaller Index ...
|
||||
int FindSignallerIndex(string name)
|
||||
{
|
||||
//
|
||||
int result = -1;
|
||||
|
||||
//
|
||||
int signallersCount = ArraySize(signallers);
|
||||
if (!IsValid() ||
|
||||
!IsValid(name) ||
|
||||
!IsValidSize(signallersCount) ||
|
||||
name == ToString(PROVIDER_NONE))
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
for (int i = 0; i < signallersCount; i++)
|
||||
{
|
||||
//
|
||||
if (signallers[i].GetName() == name)
|
||||
{
|
||||
//
|
||||
result = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
};
|
||||
|
||||
//
|
||||
Reference in New Issue
Block a user