FreePBX and CallBack: see caller numbers
This is a very small note, but the question is simple. Simple, but not so simple, sorry for X.
FreePBX has a great Callback module . The system drops the call and calls back, connecting with the specified number. But at the same time, CallerID is lost, and a wonderful “Unknown” is displayed in the softphones.
Now I’ll tell you how to fix this from a webmord in a minute.
We will need the Set Caller ID module . Install it if it is missing.
The chain looks like this:
Inbound Routes -> Callback. The call arrives at the created callback, a terminate call occurs, and the callback calls back to the client.
Further:
Callback Destination -> Set Caller ID -> Our Destination. That is, in the Destination of our Callback, we do not indicate the endpoint where to receive the call, but the element of the Set Caller ID module, in which our destination already stands. The module, as it were, becomes the layer between the Callback and the destination.


Well, now the most important thing: the settings of the fields of the Set Caller ID module: Result: normal display of the caller's number in CDR and softphones. Good luck
Caller id name: CALLBACK ${CUT(CUT(CHANNEL,@,1),/,2)}
Caller id num: ${CUT(CUT(CHANNEL,@,1),/,2)}