Outbound route to strip digits and use a sip trunk instead

I’d like to try and setup a route that will detect when a user tries to dial a remote office using LD,
1(xxx)xxy-yyyy
strip the 1(xxx)xx
and push the remaing 5 digits over a special trunk. I already have the trunks connected and can dial the 5 digits directly… just not sure how to catch those unecessary toll calls.

Is this possibe? How would i set this up?

Would this work?

Outbound Routes…
PREFIX 1XXXXX
MATCH PATTERN XXXXX

Trunk Sequence … Whatever the name of your SIP trunk.

BF