-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathvoicemail.js
More file actions
26 lines (26 loc) · 821 Bytes
/
voicemail.js
File metadata and controls
26 lines (26 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Sample custom voicemail using 46elks
//
// 1. Change +46704508449 to your destination number **
// 2. Allocate a 46elks number if you do not have one yet
// 3. Configure voice_start on the 46elks number to the JSON below
// or to a URL which returns the JSON below upon HTTP POST
// 4. Call your 46elks number!
//
// ** Mobile 46elks numbers can only "connect" to same-country mobile numbers
//
{
"connect": "+46704508449",
"timeout": 15,
"busy": {
"play": "http://www.46elks.com/download/PleaseLeaveAMessageAfterTheBeep.wav",
"next": {
"record": "http://yourserver.com/endpoint-for-capturing-the-recording"
}
},
"failed": {
"play": "http://www.46elks.com/download/PleaseLeaveAMessageAfterTheBeep.wav",
"next": {
"record": "http://myserver.se/newvoicemail.php"
}
}
}