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

Re: [sipX-dev] call pickup codes validation


Douglas Hubler wrote:
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)


Directed call pickup code is just a prefix. *78123 would pickup 123 extension.
*78 by itself is not an entire feature code.
sipXconfig will have to know which codes require further parameter to check for 
conflicts.
D.