it’s been a while since i used Asterisk-based functions for this (generally, a good phone is much better), but IIRC the disconnect option in features.conf can be used for this.
I didn’t realise there was a BLINDTRANSFER argument. I didn’t read the voip-info page well enough, there’s a good example there. I modified it slightly and used it in a macro like this: