Author Message
voice.developer
Joined: Aug 23, 2016
Messages: 33
Offline
Hello,

I am trying to set the URL base for the Phraseset audio file location at run-time. However I keep getting a popup box error that says"

"You have to set the URL now or delay the setting until runtime by setting URLas variable."

I have attached a picture.

Where is this URLas variable? This variable will be set prior to voice prompts playing but there is not indication as to where I set this variable for runtime use.

Thanks in advance.

Kurt

  • [Thumb - URLas variable.png]
[Disk] Download
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
In the Phraseset file editor, select External and the Use Variable Value option is available, and you can choose a variable in the list underneath. You would have to create a variable in the project variable editor before it's available in the variable list.
voice.developer
Joined: Aug 23, 2016
Messages: 33
Offline
Thanks WilsonYu,

So I have a variable called promptBase that has a default setting of "http://10.96.41.24:8080/audio/English"

During run-time I set promptBase to http://10.96.41.24:8080/audio/English/female/obprompts/ with the following code:

mySession.getVariable(IProjectVariables.PROMPT_BASE).getSimpleVariable().setValue(promptBase.concat(gender).concat("/obprompts/"));

I then check the value of this variable with a log statement prior to playing the prompt which shows the proper URL

2017199123344-14 | NewIVR:RefillOrPick | | promptBase : http://10.96.41.24:8080/audio/English/female/obprompts/

However, when the prompt plays it shows the original promptBase setting in the trace file. It does not seem to want to recognize the newly set variable.

<audio src="http://10.96.41.24:8080/audio/English/hello_this_is_rexall_pharmacay_at.wav">Hello This is Rexall Pharmacay at</audio>

I have attached some pictures. So not sure why it is not using the value in the updated promptBase

Thanks

Kurt



  • [Thumb - promptBase and promptAudio.png]
[Disk] Download
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
I am not sure where you place the code that change the url. Could you just add a data node and use the Assign operation to set the new value (instead of the code) before the node that plays prompt? I want to make sure the variable value is changed before the vxml is generated. I can't reproduce the problem in my OD 7.1. Are you the same version? I don't know of any such problem existing though.
voice.developer
Joined: Aug 23, 2016
Messages: 33
Offline
Thanks Wilson,

So originally I was setting the phraseset audio files URL in a custom servlet before playing the prompt. I deleted this code and just used a data node prior to the prompt node and assigned the prompt URL using the assign operation.

I put in trace statements prior to the assignment and after the assignment. The variable is changed, however in the <audio src> attribute in the VXML file shows the old variable (like it ignores the variable change).

My version of AAOD that I am using:

Avaya ADE Framework 7.0.1.0804 com.avaya.ade.feature.group Avaya
Avaya Aura Orchestration Designer Call Control (CCXML) 7.0.1.0804 com.avaya.cc.feature.group AVAYA
Avaya Aura Orchestration Designer Developer Guide 7.0.1.0804 com.avaya.sce.doc.feature.group Avaya
Avaya Aura Orchestration Designer Self Service 7.0.1.0804 com.avaya.sce.feature.group Avaya
Avaya Proactive Outreach Manager Connector 3.0.3.007 com.avaya.pdc.pim.feature.feature.group Avaya

Here are excerpts from the log (prompt base is empty before assignment).

session id:cov-labavayampp-2017201195137-1 | NewIVR:GetAttributes | Before variable change | promptBase :

Assigning [http://10.96.41.24:8080/audio/English/female/obprompts/] to [promptBase]

session id:cov-labavayampp-2017201195137-1 | NewIVR:RefillOrPick | | promptBase : http://10.96.41.24:8080/audio/English/female/obprompts/


<audio src="/hello_this_is_rexall_pharma_plus_pharmacy_at.wav">Hello this is Rexall Pharma Plus pharmacy at</audio>

What I am expecting for the audio source is:
<audio src="http://10.96.41.24:8080/audio/English/female/obprompts/hello_this_is_rexall_pharma_plus_pharmacy_at.wav">Hello this is Rexall Pharma Plus pharmacy at</audio>

It feels like AODD is not changing the variable at run-time. Any suggestions? I would upgrade to 7.1 but would i then have to upgrade the EPM?

Thanks

Kurt



WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
I ran a test app between OD 7.0 and OD 7.1, and see the difference. You should upgrade to OD 7.1. EP can stay the same.
voice.developer
Joined: Aug 23, 2016
Messages: 33
Offline
Thanks,

I have upgraded and it works. I have one more question but will create a new forum post.
Go to:   
Mobile view