Note: I'm still using 2.2.0 until 2.3 comes out of beta (or at least is in RC status), but I doubt this issue has been addressed in any 2.2.x version, however feel free to close the ticket if I am wrong.
Today I missed a call and used *69 to attempt to determine who had called me. It said: "Information about your last call - telephone number..." and it read the area code and number. Then it said "To call this number, press 1". I did, and the call failed. In examining the CLI, I quickly determined that it is simply taking the ten digit number and trying to use it, but the system is set up for 7/11 digit dialing (dial 7 digits on calls within the home area code, 11 digits on calls to other area codes - the wireline phone company still works this way in our area so I'm just mimicking their behavior).
So my request is simply that if the pattern found in ${lastcaller} is exactly ten digits and matches the pattern NXXNXXXXXX, that app-calltrace-perform prepend a "1" to the number. I understand that call trace/callback is being made into a module in 2.3, so the digit(s) to prepend and the pattern to match could perhaps be made into textbox options (there may be parts of the world where it would be desirable to prepend the local country code, or even an "outside line" dialing code for the folks that still insist on using those).
(My apologies if this has already been addressed).