Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VM Pro generic action wave editor

Status
Not open for further replies.

as1981

IS-IT--Management
Sep 28, 2006
394
GB
All,

VM Pro 4.2

Is it possible to set the filename to a user variable? So something like $csmessage.wav where csmessage is a variable holding a number. So for example if csmessage is equal to 1 I want the system to play 1.wav. I know it's possible with $key but with a user variable?

In case it's relevant. The aim is to let a call centre supervisor use a different module to select which message they want the user to hear. That module will then set csmessage to the value of $key.

Thanks

Andrew
 
Yes it's possible. The call center supervisor needs access to the different module with a "Set User Variable" action, which changes the value of variable "csmessage" - lets say they can give it a value of 1 through 9.

Then, where you play the greeting to the caller, it needs to have a "Test User Variable" action, which matches the value of that variable and sends the caller to the proper announcement 1.wav, 2.wav, etc.

 
The test user variable can only have the results true or false so I will need one for each of the values 1 to 9? Sorry but that's the way I was trying to avoid.

The set user variable is set up as you described and I think you described it better than I did :)

Thanks for your help.
 
Have a look here;



This is what you could do.

In VMPro;

Create UserDefinedVariable.

Make a Module called "SetWAV".

Menu (add $) > Generic ($KEY $CP0) > Test User Variable ($CP0 and select the UserDefinedVariable) > Set User Variable ($CP0 $KEY and select the UserDefinedVariable)

Now add a Test user variables just in front of the generic you want to play the wav in. Now rename all wave file like so;

sales01.wav
sales02.wav
sales03.wav
sales04.wav
sales05.wav
ect...

Now in the generic call the wave file sales$KEY.wav

Now based on the "SetWAV" module it will play the right wave file.

Heven't tested it but it should work.



Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Bas,

Thanks for your help. I can see the general way it works and it's a good idea but there are some things I am not clear on. If you don't mind could you answer these questions for me?:

"Setwav" module

1. Why do you have the menu with the $.
2. Where are the $key and $cp0 put in the generic action?
3. Why test $CP0 against the user defined variable?
4. Why, and how, are you setting $CP0 and $key in the set user variable.

Why the test module before the generic which plays the wav file? Does it somehow set $key?

Thanks

Andrew
 
Testing it right now, post the result/download link later.

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Brilliant thank you. I appreciate it.
 
Here it is, copy/paste it into notepad and save it as .mod
Import it in VMPro select both modules.
Copy the "Test User Variable" just in front of the box where you wan't it to play. rename the wave file into name$KEY.wav
Put the wave files in;
C:\Program Files\Avaya\IP Office\Voicemail Pro\VM\WAVS\
And name them;
name01.wav
name02.wav
name03.wav
name04.wav and so on.

Make sure you add/select the "variable" in the boxes from the pulldown menu.

Code:
<?xml version="1.0" standalone="yes"?>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
  <VMProImportExportDataSet xmlns="[URL unfurl="true"]http://avaya.com/VMProImportExportDataSet.xsd">[/URL]
    <ModuleImportExport diffgr:id="ModuleImportExport1" msdata:rowOrder="0">
      <ID>Modules.PlayWaveFile</ID>
      <Data>AwAyAAAAMgAAAF4ALAAEAA8AAAAAAA8AAIAPAACAAAAAAAAANQAKAQEA/wIBAAD/AgIA/wIMAFN0YXJ0IFBvaW50AP8CBQBOZXh0AAD/AgEAAP8CAQD/Ah4ATWVsZGthbWVyXE1lbGRrYW1lck5hY2h0Mi53YXYA/wIBAAABAwAAAP8CAQAA/wIBAAD/AgEAAAAAAP8CAQAA/wIBAAD/AgEAAKUAAAAxAAAApwBAAAQADwAAAAAADwAAgA8AAIAAAAAAAAAwAAoBAQD/AgEAAP8CAwD/AhgAVGVzdCBVc2VyIFZhcmlhYmxlICRDUDEA/wIFAFRydWUA/wIGAEZhbHNlAB3/AgEAAP8CAAD/AgEAAAEDAAAA/wIBAAD/AgEAAP8CAQAAAAAA/wIBAAD/AgEAAP8CAQAA/wILAFNldFdhdmVWYXIA/wIFACRDUDEA/wIBAAD/AgEAAIcBAAA6AAAAUQAsAAQADwAAAAAADwAAgA8AAIAAAAAAAAAPAAoBAQD/AgEAAP8CAgD/AggAR2VuZXJpYwD/AgUATmV4dAAC/wIBAAD/AgEA/wIJACRLRVkud2F2AP8CAQAAAQMAAAD/AgEAAP8CAQAA/wIBAAAAAAD/AgEAAP8CAQAA/wIBAAD/AgEAAAIAAAABAAIAAAAAAAEAAAEDBQUIAACAAQUKCAAAgJAAAABQAAAAmgAAAFAAAAAAAAEAAgACAAAAAAABAAABAwUFCAAAgAEFCggAAIBMAQAATwAAAFYBAABPAAAAAAA=</Data>
    </ModuleImportExport>
    <ModuleImportExport diffgr:id="ModuleImportExport2" msdata:rowOrder="1">
      <ID>Modules.SetWaveFile</ID>
      <Data>BQAyAAAAMgAAAF4ALAAEAA8AAAAAAA8AAIAPAACAAAAAAAAANQAKAQEA/wIBAAD/AgIA/wIMAFN0YXJ0IFBvaW50AP8CBQBOZXh0AAD/AgEAAP8CAAD/AgEAAAEDAAAA/wIBAAD/AgEAAP8CAQAAAAAA/wIBAAD/AgEAAP8CAQAAtAEAACkAAACnAEAABAAPAAAAAAAPAACADwAAgAAAAAAAADAACgEBAP8CAQAA/wIDAP8CGABUZXN0IFVzZXIgVmFyaWFibGUgJENQMQD/AgUAVHJ1ZQD/AgYARmFsc2UAHf8CAQAA/wIAAP8CAQAAAQMAAAD/AgEAAP8CAQAA/wIBAAAAAAD/AgEAAP8CAQAA/wIBAAD/AgsAU2V0V2F2ZVZhcgD/AgUAJENQMQD/AgEAAP8CAQAAMQEAADEAAAB5ACwABAAPAAAAAAAPAACADwAAgAAAAAAAAA8ACgEBAP8CAQAA/wICAP8CDwAkIHNhdmUgYXMgJENQMQD/AgkAVm9sZ2VuZGUAAv8CAQAA/wICAP8CCwBTdGF0dXMud2F2AP8CDABub18kS0VZLndhdgD/AgEAAAADAAAA/wIBAAD/AgEAAP8CAQAAAAAA/wIBAAD/AgEAAP8CAQAA/wIKACRLRVkgJENQMQDAAAAAMQAAAEwALAAEAA8AAAAAAA8AAIAPAACAAAAAAAAAEAAKAQEA/wIBAAD/AgIA/wIGAE1lbnUkAP8CAgAkADb/AgEAAP8CAQD/AhAAU2V0V2F2ZUZpbGUud2F2AP8CAQAAAQMAAAD/AgEAAP8CAQAA/wIBAAAAAAD/AgEAAP8CAQAA/wIBAAAAAAAAAAAAAAAA/wIBAAD/AgEAAIUCAAAqAAAA1AAsAAQADwAAAAAADwAAgA8AAIAAAAAAAAAvAAoBAQD/AgEAAP8CAgD/Ah0AU2V0VXNlclZhcmlhYmxlJENQMXNhdmVkJEtFWQD/AgUATmV4dAAe/wIBAAD/AgAA/wIBAAABAwAAAP8CAQAA/wIBAAD/AgEAAAAAAP8CAQAA/wIBAAD/AgEAAP8CCwBTZXRXYXZlVmFyAP8CCgAkQ1AxICRLRVkA/wIBAAD/AgEAAAUAAwACAAIAAAAAAAEAAAEDBQUIAACAAQUKCAAAgAwBAABPAAAAFgEAAE8AAAAAAAEABAACAAAAAAABAAABAwUFCAAAgAEFCggAAIBbAgAARwAAAGUCAABHAAAAAAAAAAMAAgAAAAAAAQAAAQMFBQgAAIABBQoIAACAkAAAAFAAAACaAAAAUAAAAAAAAgABAAIAAAAAAAEAAAEDBQUIAACAAQUKCAAAgKoBAABPAAAAtAEAAE8AAAAAAAQAAwAEAAAAAAABAAABAwUFCAAAgAEFCggAAIBZAwAASAAAAGMDAABIAAAAYwMAACAAAAC2AAAAIAAAAAAA</Data>
    </ModuleImportExport>
  </VMProImportExportDataSet>
</diffgr:diffgram>


Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
ps when selecting the wave file, by the number.
say 01 you need to press #
Of course make a shortcode;
*99/voicemail collect/"SetWaveFile"

Avaya_Red.gif

___________________________________________
It works! Now if only I could remember what I did...

Dain Bramaged
___________________________________________
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top