[Home]

Summary:ASTERISK-12006: Using Addqueumember it's impossible to use the new way to define member
Reporter:dimitripietro (dimitripietro)Labels:
Date Opened:2008-05-11 20:24:42Date Closed:2008-05-14 12:22:32
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_queue
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:In 1.6, it's possible de define the agent name and the device to monitor for the device state but we can't add dynamic member using Addqueuemember.



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

exten => 8181,1,AddQueueMember(test,Local/1000@default/n,0,John Smith,SIP/1000)
Comments:By: Jason Parker (jparker) 2008-05-12 11:27:53

I'm not entirely sure what it is you're asking here, but I did find 2 issues while looking at this.

The first issue is that you're missing the options parameter in your AddQueueMember line.  It looks like you actually want an extra comma between the 0 and "John Smith".

The second issue is that while state interface can be specified in AddQueueMember, it was not documented (I'll be committing a fix for that momentarily).  The correct syntax would be:

AddQueueMember(queuename[,interface[,penalty[,options[,membername[,stateinterface]]]]])


Does this help?

By: Digium Subversion (svnbot) 2008-05-12 11:29:56

Repository: asterisk
Revision: 115705

U   trunk/apps/app_queue.c

------------------------------------------------------------------------
r115705 | qwell | 2008-05-12 11:29:55 -0500 (Mon, 12 May 2008) | 1 line

Correctly document state interface for AddQueueMember.  Discovered while looking at issue ASTERISK-12006.
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=115705

By: Digium Subversion (svnbot) 2008-05-12 11:30:33

Repository: asterisk
Revision: 115706

_U  branches/1.6.0/
U   branches/1.6.0/apps/app_queue.c

------------------------------------------------------------------------
r115706 | qwell | 2008-05-12 11:30:32 -0500 (Mon, 12 May 2008) | 9 lines

Merged revisions 115705 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
r115705 | qwell | 2008-05-12 11:35:50 -0500 (Mon, 12 May 2008) | 1 line

Correctly document state interface for AddQueueMember.  Discovered while looking at issue ASTERISK-12006.
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=115706

By: dimitripietro (dimitripietro) 2008-05-13 21:07:55

Working fine with the latest docs

By: Jason Parker (jparker) 2008-05-14 12:22:30

Closing.  Documentation fix is all that was needed here.