Class Of Restriction (COR) enables you to restrict incoming and outgoing calls.
Define the COR label.
Build the permission groups.
Apply the COR list to dial peers:
Outbound dial peers, use corlist outgoing.
Inbound dial peers, use corlist incoming.
Dial-peer cor list LocalAccess Member Local Dial-peer cor list LongAcess Member LongDistance Dial-peer cor list InternationalAccess Member International dial-peer voice 1 pots corlist outgoing LocalAccess destination-pattern [2-9].......... port 1/0 ! dial-peer voice 20 pots corlist outgoing LongAccess destination-pattern 1........... port 1/0 ! dial-peer voice 30 pots corlist outgoing InternationalAccess destination-pattern 0......... port 1/0 !