How to upload a call_record audio into AWS S3 bucket?

Questions and answers about Plum Fuse+

Moderators: admin, support

  • Author
  • Message
Offline

Strats

  • Posts: 10
  • Joined: Tue Jun 13, 2017 4:29 pm

How to upload a call_record audio into AWS S3 bucket?

PostFri Dec 15, 2017 1:36 am

Hi Team,

I am recording a part of the call using "call_recording" module. As said in the documentation, the recorded audio(in .UL format) will be stored in the variable(call_recording). How to I use this variable to upload the recorded audio file to AWS S3 bucket?
Explanation supported with screenshots would be great.



Thanks,
Strats.
Offline

support

  • Posts: 3389
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: How to upload a call_record audio into AWS S3 bucket?

PostFri Dec 15, 2017 6:13 pm

Hi Strats,

Unfortunately the authentication process used by AWS S3 requires you to perform a SHA1 signature against each request which is not currently a feature available in Fuse+. If you absolutely need to store your data in S3 we would recommend pushing the recording using the REST module to a custom REST service that you would build which would in turn upload the data to S3. We will definitely mention to our engineers that support for S3 as a target platform would be useful so that they can add it to the feature request list. Please let us know if you need any additional details.

Regards,
Plum Support
Offline

zterlizzese

  • Posts: 7
  • Joined: Mon Nov 20, 2017 5:56 pm

Re: How to upload a call_record audio into AWS S3 bucket?

PostTue Jan 09, 2018 11:31 am

I too am working with AWS S3 (Amazon's servers) and would greatly appreciate the ability to easily communicate with data to their system. Is there any way to access/print the raw contents of a "call_recording" object so that we can hash it and send it to Amazon's servers?

Zachary
Offline

support

  • Posts: 3389
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: How to upload a call_record audio into AWS S3 bucket?

PostWed Jan 10, 2018 10:12 am

Hi Zachary,
For now, the best option is to utilize the REST module to send the recording stored in the "call_recording" object to a web service (that you build) to hash and send the data to S3.

Best,
Plum support
Offline

zterlizzese

  • Posts: 7
  • Joined: Mon Nov 20, 2017 5:56 pm

Re: How to upload a call_record audio into AWS S3 bucket?

PostFri Jan 12, 2018 8:54 pm

Understood. I've setup a web service to receive the call_recording. I am using a REST endpoint like this:
Code: Select all
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped, UriTemplate = "REST")]
string receiveAudio(Stream file);

I am then returning the number of bytes read as an early proof of concept. Unfortunately I am reading 0 bytes. Do you have any details that could help me receive this file in a web service (like data type to expect or the format that the data is sent in)?

Thank you for all of your help,

Zachary
Offline

support

  • Posts: 3389
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: How to upload a call_record audio into AWS S3 bucket?

PostMon Jan 15, 2018 4:26 pm

The MIME type for the call recording is audio/x-wav.

Return to Fuse+

Who is online

Users browsing this forum: No registered users and 1 guest