[Home]

Summary:ASTERISK-11490: setting the channel language first read fails 1.6.0-beta3
Reporter:John Hass (john8675309)Labels:
Date Opened:2008-02-21 08:37:14.000-0600Date Closed:2011-06-07 14:02:38
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/app_read
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:when I create a dialplan like this:

exten => s,1,Set(TRIES=0)
exten => s,n,Set(CHANNEL(language)=voicemail)
exten => s,n(username),read(username,welcome_username)
exten => s,n(password),read(password,password)
exten => s,n,Set(location=login)

I get:
[Feb 21 08:34:56] WARNING[2791]: file.c:848 ast_streamfile: Unable to open welcome_username (format 0x4 (ulaw)): No such file or directory

but when I double up the reads like so

exten => s,1,Set(TRIES=0)
exten => s,n,Set(CHANNEL(language)=voicemail)
exten => s,n(username),read(username,welcome_username)
exten => s,n(username),read(username,welcome_username)
exten => s,n(password),read(password,password)
exten => s,n,Set(location=login)

it errors on the first then works on the second

I tried putting a  noop() in but it did not work I had to place the read() their                                                                                                            

****** ADDITIONAL INFORMATION ******

this is actually 1.6.0-beta3 it worked on 1.6.0-beta2
Comments:By: Joshua C. Colp (jcolp) 2008-02-21 08:52:12.000-0600

This issue has already been fixed in SVN and will be in the next beta shortly.