Comment #1 on issue 199 by [email protected]: Docs explain SCCP rule ordering mechnism
http://code.google.com/p/jss7/issues/detail?id=199

When user defines Rules, a comparison function imposes ordering on collection of SCCP Rules
 based on the GT digits. The sorting algo is as defined bellow

1) GT digits having no wildcard (* or ?) is always on top of the list. Between
 two GT digits, both having no wildcards, one with shortest length is on top
 of list. For example Digit1 "123456" will be above Digit2 "1234567890" will
 be above Digit3 "999/*

2)GT digits having wildcard ? is always above digits having wildcard *. For
 example Digit1 "800/????/9" will be above Digit2 "999/*

3) Between two GT digits both having wildcard ?, one with least number of
wildcard ? is on top of list. For example Digit1 "800/????/9" is above Digit2
 "800/?????/9"

4) Between two GT digits both having equal number of wildcard ?, the digit who's first appearance of ? is after other, is on top of list. For example between
 Digit1 "80/??/0/???/9" and Digit 2 "800/?????/9", Digit2 is above Digit1


When comparison of rule is done in translation, comparing always starts from top of list.

Reply via email to