...
Scroll export button | ||||||||
---|---|---|---|---|---|---|---|---|
|
Info |
---|
The Document describes how to record a custom message via Dialplan Custom application. Created: May 2019 Permalink: https://wildix.atlassian.net/wiki/x/uhbOAQ |
Table of Contents
Use case
A user wants to change a standard IVR announcement from an external phone. To override restriction of not being able to dial feature code 74 as external caller - we can use the following Custom application:
Principle of work:
We are using old recording file, in our example it will be "test":
This is the original file configure it via Dialplan.
Dialplan configuration
For the configuration, the previously recorded audio message is used ("test" in our example):
It is the original message that was recorded via Feature Code "Shared record" 74/ Message message recording option in WMS -> Sounds menu.Idea The idea is to replace existing file it with the new one. When caller will reach to this entry of the dialplan - he will hear "Beep" sound and recording will start, however you can When an external caller dials a DID to hit the Dialplan entry shown below, a beep sound is played and the recording starts immediately. You can also add "Play sound" application to announce that your a message will be recorded after "Beep" sound.
To do this, we need to build such row in the dialplan:
...
icon | false |
---|---|
title | Code: |
...
a beep sound (optional).
Add Custom application (it should match DID configuration):
- Custom application -> Record(/rw2/var/lib/callweaver/sounds/00000/test:alaw, 0,0,k
...
- )
Where where :
- (/rw2/var/lib/callweaver/sounds/00000/) - / path /to/file
NOTE: How to see /path/to/file - open your dialplan and use "Play sound" application and choose your message from Sounds menu:
/rw2/var/lib/callweaver/sounds/00000/ - is DEFAULT to the audio message
It is the default path and is used by
...
default. If you
...
place your recording in
...
another folder, the path will be different. For example, ~/00000/MusicOnHold/ folder. To verify the path, use "Play sound" application -> choose your message from Sounds menu:
...
- test:alaw - file the message name and format
- 0 - silence: seconds of silence allowed before the recording is stopped. If missing or 0, silence detection is disabled. ( In our case this is 0 ) disabled
- 0 - maxduration: the maximum duration of the recording duration in seconds. If missing or 0, there is no maximum. ( In our case this is 0 ) the maximum duration is not set
- k - option: may be ‘skip’ "skip" option to return immediately if the line is not up, or ‘noanswer’ "noanswer" to record even if the line is not up. ( In our case this is k )
Option parameters in 1.8:
- a: Append to existing recording rather than replacing. n: Do up
Other available options:
- a - extends the existing recording (doesn't replace it)
- n - does not answer, but record anyway if the line not yet answered.
- q : quiet (do not play - quiets (a beep tonesound is not played). s: skip
- s - skips recording if the line is not yet answered.
- t: use - uses alternate ‘"*’ terminator key (DTMF) " DTMF key instead of default ‘#’"#"
- x : Ignore all terminator keys (DTMF) and keep - ignores all sent DTMF keys and keeps recording until hangup.
- k : Keep - keeps recorded file upon hangup.
- y : Terminate - terminates the recording if *any* DTMF digit is received.is sent
Note |
---|
Note: the k option is used in our example and should likely be used in your case so that a person who is calling to change the announcement can simple hang up OR press "#" key to terminate the recording of the new announcement. |
Macrosuite divider macro | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Button macro | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|