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

How to implement a voicemail

Dylan
Contributor

Hi all,

 

I would like to implement a voicemail function, for example, if there is no answer for 30 seconds, a voicemail alert is played, then the caller can leave a message and then the recipient can listen to this message.
I can't find an implementation in the documentation, can anyone help me?

I am calling a Sinch number from the PSTN, how can I implement voicemail in this case?

 

Regards.

1 ACCEPTED SOLUTION

Accepted Solutions

Roland_Ian
Employee
Employee

Hi

You can use AMD (Answer machine detection) to estimate if the caller is an answer machine. In an ICE response or customCallout

amd": {"enabled": true, "async": false}

We would send a notification if you ask to detect an answering machine

 

A notification would then be returned, (two examples shown): 

type: 'amd', amd: { status: 'machine', reason: 'n/a', duration: 4 }
type: 'amd_beep', amd: { status: 'machine', reason: 'beep', duration: 8 }

You can then issue a command to start recording how you require

 

Roland-Ian Clothier, Developer Support Engineer

View solution in original post

3 REPLIES 3

Roland_Ian
Employee
Employee

Hi

You can use AMD (Answer machine detection) to estimate if the caller is an answer machine. In an ICE response or customCallout

amd": {"enabled": true, "async": false}

We would send a notification if you ask to detect an answering machine

 

A notification would then be returned, (two examples shown): 

type: 'amd', amd: { status: 'machine', reason: 'n/a', duration: 4 }
type: 'amd_beep', amd: { status: 'machine', reason: 'beep', duration: 8 }

You can then issue a command to start recording how you require

 

Roland-Ian Clothier, Developer Support Engineer

Hi Roland_Ian,

 

It's a PSTN to InAPP call, and in fact, I just need to be able to turn on recording on the dialing branch when the receiver doesn't answer.

But at the moment it doesn't seem to be able to turn it on. Is there a way to accomplish this kind of thing I'm talking about?

Dylan
Contributor

Hi,

 

I want to use text-to-speech in pie, but nothing happens.

 

"callid":"bcfae923-b8e0-44ad-8313-8f84630f4f0a","timestamp":"2024-01-23T08:02:25Z"

 

{
"instructions": [
{
"name": "say",
"text": "Hello, this is a text-to-speech message.",
"locale": "en-US"
}
]
}

 

There is no sound, why?