That’s where I am at now and it works great. Problem is that makes it a Scott only solution and my techs can’t route DID’s to remote offices. A common request.
If I could get a misc destination or anything that I would use the inbound route module.
I was also thinking about adding another global variable, DID_out or some such thing and in a custom context move set $EXTEN to DID_out and then I can use it in the dial string of a custom extension?? With this solution I make one custom change.
I have one more thought…
What if add something like this to extensions_custom:
one of the more important reasons I suggest doing what I proposed was that if all you are doing is switching the DID, you probably want to minimize all of the manipulation that otherwise occurs when processing a number.
It sounds like a better overall solution may be a new module for the pure purpose of doing this, or a new module that introduces destinations just for inbound routes though it still then goes through all the inbound route code.