Print

Custom payload examples

This following are examples of some custom payloads sent by Dialogflow to AAEP.

Example of telephony_read_dtmf custom payload

This payload is sent by Dialogflow to collect a maximum of five digits using dial pad only terminating with * (listen_to_speech is false).

"telephony_read_dtmf": {
        "max_duration": "10s",
        "max_digits": 5,
        "listen_to_speech": false,
        "finish_digit": "DTMF_STAR"
  }

Example of avaya_telephony custom payload to play audio files and DTMF

This payload is sent by Dialogflow to instruct AAEP to play three audio files and then play DTMF digits: *991611. The audio files cannot be interrupted by speech (bargein is false)

“avaya_telephony": { 
  “bargein": false,
  "reply_audio_uri": [
     "http://1.2.3.4/prompts/HelloRoomBookingAgent.wav",
     "http://1.2.3.4/prompts/HowCanIHelp.wav",
     "file:///opt/Avaya/EP/MPP/web/misc/dialogflowapp/prompts/test/Test.wav",
     "builtin://senddigit/*991611"
  ]
}

Example of avaya_telephony custom payload to perform a VXML transfer

This payload is sent by Dialogflow to instruct AAEP to perform a VXML bridge transfer to 8141270, with SIP headers and AAI data to be sent to the caller through SIP INVITE. The music.wav file will play until the callee answers. The transfer disconnects after 15 seconds if the callee does not answer (connecttimeout: 15s). The bridge call disconnects 30 seconds after connecting (maxtime: 30s).

"avaya_telephony": {
    "transfer": {
          "dest": "tel:1234",
          “type": “bridge",
          "transferaudio": "http://1.2.3.4/prompts/music.wav",
          "connecttimeout": “15s",
          "maxtime": “30s",
          "aai": "FA,2901000246DEE275",
          "sip_headers": {
              "unknownhdr[0].name": "Random",
              "unknownhdr[0].value": "This is an unknown header"
          }
    }
}