[asterisk-bugs] [Asterisk 0015559]: stateinterface in queues.conf makes the member show "Invalid"
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Jul 24 14:12:50 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-24 14:12 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)
======================================================================
----------------------------------------------------------------------
(0108200) mmichelson (administrator) - 2009-07-24 14:12
https://issues.asterisk.org/view.php?id=15559#c108200
----------------------------------------------------------------------
I plan to commit a fix so that config lines in queues.conf are not
truncated like you are seeing.
I'd also like to take a moment to say that your use of state interface is,
well, quite a bit unorthodox. Now for all I know you just came up with a
contrived example for the bug report, but the problem that was supposed to
be solved by the use of state interface is that since Local channels are
not "real" channels, their device state reporting is not usually what one
would expect. Adding a Local channel as the state interface for a queue
member seems like an odd idea.
Also using the same interface for both the calling interface and the state
interface does not actually accomplish anything, so your first line can be
safely reduced to just:
member=>Local/1 at DialAccount
and it would accomplish the same thing.
Issue History
Date Modified Username Field Change
======================================================================
2009-07-24 14:12 mmichelson Note Added: 0108200
======================================================================
More information about the asterisk-bugs
mailing list