Cisco ATA 186 H 323 and Asterisk

Hi All, can I plug an Avaya index affinity extension into a Cisco ATA 186 then plug this into Asterisk, then do some config so that asterisk handles the calls coming in on the Avaya Index extention.