Flex ANI II support

What version of Asterisk can populate ${ANI2} with the info digits provided by the telco, correctly, from an ISDN connection using the NI2 variant with Generic or Information Digit formats? I keep getting “!! Unknown IE 127 (cs6, Unknown Information Element)” when passing flex ani using the Information Digit format and “!! Unable to handle binary encoded Generic Digits IE” when passing flex ani using the Generic Digit format.