FreePBX 17 outgoing caller-id

The one you are using have to be called on the destination channel, but the hook you are using runs on the caller’s channel. The above subroutine sets up information to allow FreePBX to run them on the right channel.