The number dialed by a user is treated in the following order:
If the number dialed matches an internal extension, go to step 6.
If the number matches a User short code, apply the short code. If the result is a number for dialing proceed to Step 5. Otherwise go to step 3.
If a User Restriction has been applied to a user, the dialed number must match a User restriction short code or else the number will not be routed out. To avoid all outgoing calls being held up for this user when a match is not achieved, create a User restriction short code that allows unmatched numbers to be routed out.
If the number matches a System short code, apply the short code. If the result is a number for dialing proceed to Step 5.
If the number matches a Least Cost Route short code, dial the number as per the Least Cost Route rules.
Dial the number.
This means if you have the Sortcode in the user settings it will never be checked against the Restrictions table.
If it is a System SC then you must have exact the same SC in the user Restrictions table. Make sure to create SCs in the restriction table both for Busy as for Dial, otherwise the user can only dial Emergency numbers.