You will need a detailed COR configuration, that will require a dial-peer for each allowed number, to achieve this. You can look up COR in documentation or search the forum.
Note: I don't know if that can be done with CCA, and cannot answer question about CCA