[asterisk-bugs] [Asterisk 0012045]: setting the channel language first read fails 1.6.0-beta3

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Feb 21 08:52:14 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=12045 
====================================================================== 
Reported By:                john8675309
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   12045
Category:                   Applications/app_read
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
Asterisk Version:           1.6.0-beta1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
Resolution:                 no change required
Fixed in Version:           
====================================================================== 
Date Submitted:             02-21-2008 08:37 CST
Last Modified:              02-21-2008 08:52 CST
====================================================================== 
Summary:                    setting the channel language first read fails
1.6.0-beta3
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                                                                      
                                     
====================================================================== 

---------------------------------------------------------------------- 
 file - 02-21-08 08:52  
---------------------------------------------------------------------- 
This issue has already been fixed in SVN and will be in the next beta
shortly. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-21-08 08:52  file           Resolution               open => no change
required
02-21-08 08:52  file           Assigned To               => file            
02-21-08 08:52  file           Note Added: 0082727                          
======================================================================




More information about the asterisk-bugs mailing list