< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[sipX-dev] call pickup codes validation


I'm looking at this
http://track.sipfoundry.org/browse/XCF-1108
And the issue with existing defaults (*4, *78*)

So I thought I write a validator like so

for each featureCodeA
check is any other star code setting value featureCodeB that starts with featureCodeA
    throw user exception propagated to form error

However, then there's this that would fail this check
SIP_REDIRECT.180-PICKUP.GLOBAL_CALL_PICKUP_CODE=*78*
SIP_REDIRECT.180-PICKUP.DIRECTED_CALL_PICKUP_CODE=*78

So am I missing something? Is there a check that could be made other than
 if featureCodeA.startsWith(featureCodeB)