That conflicts with what @jcolp has recently said on the subject:
Also, the only technology independent way it could be done, in your example, is for the channel driver to look at the value of EXTEN, but channel drivers are not in general aware of the the dialplan. It can’t copy the To header from a DAHDI channel, as there is no To header.