Play a playback after soft hang up in asterisk

An ARI controller will soft hangup the call from the Statis part of dial plan. Is it possible to play a default playback after every soft hang up requests with code 32? This is the received message from ARI in asterisk-cli

  "cause": 32,
  "soft": true,
  "type": "ChannelHangupRequest",
  "timestamp": "2020-05-16T12:12:24.114",
  "channel": {
    "id": "1589631144.0",
    "name": "SIP/+991551111-00000000",
    "state": "Ring",
    "caller": {
      "name": "",
      "number": "+991551111"
    "connected": {
      "name": "",
      "number": ""
    "accountcode": "",
    "dialplan": {
      "context": "finalOutbound",
      "exten": "+993211111",
      "priority": 9,
      "app_name": "Stasis",
      "app_data": "auth_app,auth_reqtype=*prepaid,flags=*attributes,*thresholds,*sessions,*accounts,*suppliers"
    "creationtime": "2020-05-16T12:12:24.118",
    "language": "en"
  "asterisk_id": "00:0c:29:92:52:b2",
  "application": "auth_app"

No, when the channel is requested to be hung up it is hung up.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.