I'm trying to do some redirecting of incoming calls to other external numbers
You don't need to reivent the weel... go to Accounts->Phones in the askozia webgui then setup a new external extension. This works like a virtual internal number to map an external one.
After done that you can assign the virtual extension to incoming calls or a ring group.