Is there a way to play a sound or message when a call ends?

Our agents sometimes get disconnected or hung up on from the other end of the line. Is there a way for FreePBX to play a “Call Has Ended” message before closing out the line on our Polycoms?

Also, is there a way to set the “Music On Hold” to not play when someone is being transferred; only when they are actually placed on a long hold?