Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Use case example: change auto attendant (IVR) announcement from an external phone.

Html
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.11';
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>



Html
<div class="fb-like" data-href="https://confluence.wildix.com/x/c4NpAg" data-layout="button_count" data-action="recommend" data-size="large" data-show-faces="true" data-share="true"></div>


Html
 <div class="lang-box-pdf">
	<div>
		<div class="google-lang">
			<div id="google_translate_element">
			</div>
			<script type="text/javascript">
					function googleTranslateElementInit() {
						new google.translate.TranslateElement({pageLanguage: 'en', includedLanguages: 'de,es,fr,it,nl', autoDisplay: false}, 'google_translate_element');
						}
			</script>
			<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
		</div>
		<div class="pdf-button">
			<a href="https://confluence.wildix.com/spaces/flyingpdf/pdfpageexport.action?pageId=40469363" alt="Convert to .pdf" title="Convert to .pdf"><img src="https://confluence.wildix.com/download/attachments/14549012/pdf-button-download-wildix-documentation.png"></a>
		</div>
	</div>
</div>


Info

The Document describes how to record a custom message via Dialplan Custom application.

Created: May 2019

Permalink: https://confluence.wildix.com/x/c4NpAg

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": 
Image Removed
This is the original file configure it via Dialplan. 

Dialplan configuration

To 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 Sounds menu (internally)WMS -> SoundsThe idea idea is to replace an existing file it with the new one.  When the  When an external caller dials a DID to hit the dial plan Dialplan entry shown below - they will hear a "Beep" sound a beep sound is played and the recording will starts immediately start.   However you You can also add "Play sound" application to announce that your a message will be recorded after "Beep" sound (optional). 

To use this custom application, we need to build the following entry into the dial plan (matching a DID of course):Image Removed

...

iconfalse
titleCode:


...

  • 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: To verify the path (/path/to/file)  -  open your dialplan and use "Play sound" application and choose your message from Sounds menu: 
    Image Removed 
    /rw2/var/lib/callweaver/sounds/00000/ - is DEFAULT the audio message

It is the default path and is used by

...

default. If you

...

place your recording in another folder - you will see /path/to/file differently. In this example file is stored at ~/00000/MusicOnHold/ folder

...

To verify the path, open your Dialplan and use "Play sound" application and 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’ to return immediately if the line is not up, or ‘noanswer’ to record even if the line is not up . ( In our case this is k )Option parameters in 1.8

Available options:

  •  a: Append to existing recording rather than replacing.
  •  n: Do a - extends the existing recording (doesn't replace it)
  • n - does not answer, but record anyway if line not yet answered.
  •  q : quiet - quiets (do not play a beep tone). s: skip
  • - skips recording if the line is not yet answered.
  •  t: use - uses alternate ‘*’ terminator key (DTMF) instead of default ‘#’
  •  x : Ignore - ignores all terminator keys (DTMF) and keep recording until hangup.
  •  k : Keep - keeps recorded file upon hangup.
  •  y : Terminate - terminates the recording if *any* DTMF digit is received.sent


Note

Note: the k option is used in

...

our example dial plan

...

and should likely be used in your case so that the person calling in to change the announcement can simple hang up OR press the # key to terminate the recording of the new announcement.


Html
<div class="fb-like" data-href="https://confluence.wildix.com/x/c4NpAg" data-layout="button_count" data-action="recommend" data-size="large" data-show-faces="true" data-share="true"></div>