Play a custom announcement on the calls with hangup cause 486 or 17

Hi,

I want a custom announcement to be played on all the calls which gives cause code 17 or 486.

How can I do that.

This is going to require you to handle the call in a custom manner including determining if Early Media is needed or not. Otherwise you’d have to answer every call to play the announcement.

First i will try to do it for every call and then I’ll filter out some specific calls