Detecting wrong number from PSTN

Hi,

i make some calls to PSTN via PRI card (Sangoma A102) how can i detect that wrong number is dialed - asterisk show something like service unavailable. Any idea how to detect that it was wrong number?

Greetings