Asterisk the Right Choice?

I am looking for a software to fulfill my requirements described in the following and was wondering if Asterisk is the recommended choice for this.

The system needs to receive SIP or IAX calls and plays either a recorded message if the caller ID is send or plays an individual PIN number otherwise. The complete number of the caller needs to be process further in another application so if the caller ID appears in a logfile or so it would be sufficient. Another task is to call particular numbers and play a recorded message, initiated by another application.

Do you think Asterisk is the right tool for me or do you have other recommendations? Any comments and recommendations for easier alternatives are appreciated!

Best regards, Markus

FYI, IAX is original and native Asterisk protocol. I don’t see any problems to implement described system using standard Asterisk system without any add-ons.