Stew_Mc | 2020-06-02 10:36:18 UTC | #1
Hi
Is it possible to use the WebRTC SDK to send a DTMF tone?
Any guidance or suggestion appreciated.
Thanks
Stew_Mc | 2020-06-03 10:29:46 UTC | #2
Ok I think I have figured out I can do this calling the conversations API.
I'm getting a bad request 400 though with the following code.
Could someone confirm if the digits object is supposed to be as simple as this? let opts = { 'body': {"digits": "1"} // Object | Digits };
With conversationsApi.postConversationParticipantDigits(conversationId, participantId, opts)
tim.smith | 2020-06-03 21:00:51 UTC | #3
Yes, that's correct per the documentation. Can you provide the correlation id from the response?
Stew_Mc | 2020-06-04 06:56:15 UTC | #4
Thanks Tim, from the response header.
inin-correlation-id: "fe6db017-f3d4-4410-b860-0232cb60543a"
I think the issue is to do with the participant ID. If I set what I think is my ID the post returns successfully (although I don't hear the dtmf) using the callers ID though seems to cause the 400 error.
Thanks in advance.
tim.smith | 2020-06-05 17:19:39 UTC | #5
Please open a case with Genesys Cloud Care to investigate further. I can see an error in the backend service: "User id was not provided in the DTMF request". This sounds like a bug with the API since the request doesn't require, or even allow, a user id to be provided.
system | 2020-07-02 10:36:21 UTC | #6
This topic was automatically closed after 30 days. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 7943