FreePBX
Extensions->Add Extension->Other (Custom) Device

Fill fields:

User Extension
Display Name

and
dial
(in Device Options) like this:
Local/externalphonenumber@outbound-allroutes

Then click Submit->Apply
and you’ re ready!