jambonz/jambonz-feature-server

listen_status: resume does not resume the audio stream

Opened this issue · 0 comments

Description

Using the Update Call - Live Call Control, sending "listen_status": "resume" does not resume a paused audio stream.

Note: I believe I have created a fix for this problem here: drachtio/drachtio-fsmrf#95

Repro Steps

  1. Start up a websocket server locally
websocat -s 6789
ngrok http 6789
  1. Trigger a Jambonz application that makes an outbound dial with a nested listen
[
   {
      "verb": "say",
      "text": "Dialing the number now"
    },
    {
        "verb": "dial",
        "answerOnBridge": true,
        "actionHook": "/myActionHook",
        "listen": {
            "url": "https://<INSERT_NGROK_ADDRESS>",
            "mixType": "stereo",
            "sampleRate": 8000
        },
        "target": [
            {
                "type": "phone",
                "number": "<INSERT_PHONE_NUMBER>"
            }
        ]
    }
]

(On answer, you should see streaming audio to the websocket)

  1. Update call with listen_status: pause
curl --location 'https://jambonz.cloud/api/v1/Accounts/<ACCOUNT_ID>/Calls/<OUTBOUND_CALL_SID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
    "listen_status": "pause"
}'

(Verify the streaming audio has paused on the websocket)

  1. Update call with listen_status: resume
curl --location 'https://jambonz.cloud/api/v1/Accounts/<ACCOUNT_ID>/Calls/<OUTBOUND_CALL_SID>' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_KEY>' \
--data '{
    "listen_status": "resume"
}'

Audio does not currently resume