I use a Logcat event entry, with de component "ACCESSIBILITY" and filter "end_call"
Then I have a task witha "Play Ringtone" in it
If you want this to happen when connected to a bluetooth device just add that condition lo the logcat condition
Hope this work for you.