No diversion header on Transferred call

I am doing a transfer as per this dial plan (external endpoint) …

exten => 2404988961,1,NoOp()
exten => 2404988961,n,Transfer(PJSIP/sip:8966@some.host.com)

I have not changed the send_diversion flag which by default is set to true. I was expecting to see a diversion header in the SIP/2.0 302 Moved Temporarily response that asterisk sends out but this is not the case. Should asterisk by default create one?

I am running asterisk 15.5.0 with PJSIP.

Thanks,

Daniel

The Diversion header is placed into INVITE requests that have been diverted, not into the 302 or REFER. Those have their own header to indicate where a call has been sent.

1 Like