[Home]

Summary:ASTERISK-17136: SPEECH_ENGINE should be readable
Reporter:Richard Kenner (kenner)Labels:
Date Opened:2010-12-20 15:24:05.000-0600Date Closed:2012-10-01 07:29:21
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_speech_utils
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:If you want to temporarily change one parameter, you want to save and restore the old value.  But you can't current read it.
Comments:By: Stefan Schmidt (schmidts) 2010-12-21 02:49:07.000-0600

sorry but i dont understand your problem. Could you please explain more what you want to do or expect what should be possible.

thanks

By: Richard Kenner (kenner) 2010-12-21 06:20:49.000-0600

Let's suppose there's a parameter named foo and I want to modify it for one particular SpeechBackground call to have a value of 7 and then restore the previous value.  So what I'd like to do is:

exten => s,n,Set(save_foo=${SPEECH_ENGINE(foo)})
exten => s,n,Set(SPEECH_ENGINE(foo)=7)
exten => s,n,SpeechBackground ...
exten => s,n,Set(SPEECH_ENGINE(foo)=${save_foo})

I can't do this now but instead have to KNOW what the original value was.  But that value is likely in some other config file which means that if I change it later, I have two places to change.  That's bad.

By: Leif Madsen (lmadsen) 2010-12-21 07:38:57.000-0600

While this is a feature, I consider this a reasonable feature, so I'll acknowledge this later when I have a chance to import it.

By: Joshua C. Colp (jcolp) 2012-10-01 07:29:21.487-0500

Put into trunk as of revision 374096 as this is a new feature.