Here is how you configure an ATA in CME so that you can use both ports on the back. Im using an ATA 186. Here is the config for it:
ephone 40
device-security-mode none
mac-address 0026.CB3C.DAAD
max-calls-per-button 2
type ata
button 1:30
ephone 41
device-security-mode none
mac-address 26CB.3CDA.AD01
max-calls-per-button 2
type ata
button 1:30
Now, this implementation was for dial out only (fire alarm) that required two lines. Notice that the two front characters are taken off the front and an '01' put on the back of the mac-address. I also used the same DN (30).