cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Trying to update a Call with a runMenu action

beaver
Contributor

I have custom callouts with async AMD activated.

When I receive a Notify event indicating a human has answered, I update the call (via https://sinch.redocly.app/docs/voice/api-reference/voice/calls/calling_updatecall) with this SVAML:

 

{
  "action": {
    "name": "runMenu",
    "locale": "Gabrielle",
    "mainMenu": "api_call_menu",
    "menus": [
      {
        "id": "api_call_menu",
        "options": [
          {"action": "return(confirm)", "dtmf": 1},
          {"action": "return(cancel)", "dtmf": 2},
          {"action": "return(surprise)", "dtmf": 3}
        ],
       "mainPrompt": "#ssml[<speak><prosody rate='slow'>Bonjour, comment allez-vous? Pour confirmer faites le 1. Pour annuler faites le 2. Pour une surprise, faites le 3.</prosody></speak>]",
       "repeats": 3
      }
    ]
  }
}

 

This exact SVAML was working perfectly before activating async AMD. Now the call update fails with this error:

Unknown SVAML action 'runMenu'

0 REPLIES 0