This is an useful feature. In freepbx on outbound route you can specify prepend, prefix, pattern and also callerid. So you can specify what extensions can use this route.
sincerely I do not know if it is implementable with Class of Service
I hope that in next version of VitalPBX you can implement.