[asterisk-bugs] [Asterisk 0015559]: stateinterface in queues.conf makes the member show "Invalid"

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Jul 23 17:34:26 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15559 
====================================================================== 
Reported By:                amorsen
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15559
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.1 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-07-23 09:32 CDT
Last Modified:              2009-07-23 17:34 CDT
====================================================================== 
Summary:                    stateinterface in queues.conf makes the member show
"Invalid"
Description: 
In queues.conf I have:

[1]
 member => Local/1 at DialAccount,,,Local/1 at DialAccount
[2]
 member =>
Local/2 at DialAccount,,,Local/1234567890123456789012345678901234567890 at DialAccount

Right after starting asterisk:
vpbx05*CLI> queue show 1
1            has 0 calls (max unlimited) in 'ringall' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members: 
      Local/1 at DialAccount (Not in use) has taken no calls yet
   No Callers

vpbx05*CLI> queue show 2
2            has 0 calls (max unlimited) in 'ringall' strategy (0s
holdtime), W:0, C:0, A:0, SL:0.0% within 0s
   Members: 
      Local/2 at DialAccount (Invalid) has taken no calls yet
   No Callers

Notice that Local/2 at DialAccount is Invalid, whereas Local/1 at DialAccount is
Not in use.

I also get this in /var/log/asterisk/messages:
[Jul 23 16:28:56] DEBUG[4263] chan_local.c: Checking if extension
1234567890123456789012345678901234567890 at DialAccoun exists (devicestate)


====================================================================== 

---------------------------------------------------------------------- 
 (0108156) Laureano (reporter) - 2009-07-23 17:34
 https://issues.asterisk.org/view.php?id=15559#c108156 
---------------------------------------------------------------------- 
The problem is the lenght of the member definition. By default, there is a
limit of 80 characters for any line in the configuration file queues.conf
to be parsed.
That's why "[Jul 23 16:28:56] DEBUG[4263] chan_local.c: Checking if
extension 1234567890123456789012345678901234567890 at DialAccoun exists
(devicestate)" shows a context without the final 't' of DialAccount.
You could get 2 extra characters by removing the spaces in your member
definition
(member=>Local/2 at DialAccount,,,Local/1234567890123456789012345678901234567890 at DialAccount).
You could also rename the context to something more shorter to get some
extra chars.

Or you could modify the line 5452 in app_queue.c to get a longer
configurartion line to be parsed. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-07-23 17:34 Laureano       Note Added: 0108156                          
======================================================================




More information about the asterisk-bugs mailing list