SIP Diversion Header Missing on call forward

Hi everyone,

I’ve noticed that the SIP Diversion header is not always included in forwarded calls, which causes some operators to reject or mishandle the call.

After reviewing several cases, I found that the behavior depends on the origin of the call:

  • In some cases, the Diversion header is correctly included
  • In others, it’s missing, and this always happens with specific caller numbers.
    For example: when the call comes from 696000000, the issue occurs, but when it comes from 656111111, it works fine.

I haven’t tested any advanced configurations or made changes to system files yet.

For now, I would like to know:

  • Does VitalPBX add the Diversion header automatically on call forwards?
  • Is there any setting in the GUI or configuration file that needs to be enabled?
  • Could there be any dialplan condition or module that prevents the header from being added based on the caller?
  • Has anyone else experienced this behavior with SIP?

For context, I’m using VitalPBX 4 on Debian, which I upgraded from VitalPBX 4 on CentOS, using a backup originally from VitalPBX 3. I mention this in case it might be relevant to the issue.

Also, I came across this thread with a similar issue, but unfortunately, it wasn’t clearly resolved. I’m hoping to get more clarity here.

Thanks in advance for any help!

You can try enabling the parameter “Send Diversion Headers” in the “System General”