Given is an external caller A, who’s calling B, which forwarded on FreePBX unconditional to an internal user C. Now, I want to see in the Invite to C: A’s number (it’s there), B’s number (diversion header or something else - it’s not there). How can I tell FreePBX to add B’s number?
Thanks for your help and idea - but it’s definitely not there by default. The diversion header is only added for outgoing calls, that means, if forwarded to an external C, the diversion header is added - but not, if C is internal.
Where should the code be added in the dialplan to get the diversion header even for calls forwarded to internal users?
Just curious, did you do a SIP capture on this to be sure no headers are added on forwarded calls?
It looks like there’s already dialplan that sets up Diversion header information. (grep -i for diversion in the /etc/asterisk/extensions_additional.conf file)