Does Asterisk PBX able to capture the c_record from ISDN

Could someone advise on the following

can Asterisk capture the c_record information from a call via ISDN connection and store into a database?

As well as classifying the call/c_record into corresponding call group with a specific Caller ID before forward the original call to a specified destination.

Thank you
Best regards