Check out the section titled " How do I apply custom dialplan selectively on some outbound calls?" in this post: Hooking for fun and income
You don’t want to use dialplan hooks for this, but the technique described there shows how to selectively apply dialplan based on the originating extension. We can easily work this up in support if you need assistance.