[Home]

Summary:ASTERISK-04732: [patch] ISQUEUEMEMBER([queuename],channel)
Reporter:seb7 (seb7)Labels:
Date Opened:2005-07-29 12:19:35Date Closed:2011-06-07 14:03:18
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Applications/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) 20050730__isqueuemember__2.diff.txt
Description:This is a dialplan application I need so that I can make a call branch conditionnally depending on whether an agent is a member of certain queues (which are dynamic).  In this case, our immediate use would be setting of CLIDNumber (CLI) dependent on which queue the agent is a member of.

It would take two parameters:
channel, e.g. Agent/1001 or IAX2/me
and optionally a queuename (the name of a queue in queues.conf). If queuename is not supplied all queues would be searched for this agent, as opposed to just the name queue.

It would return like the HasVoicemail application, i.e. logically true or false, perhaps with optional priority jumping.

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

We are using the stable branch, so I would need to know about any gotchas with porting any patch back to the stable branch.

Many thanks,

Sebastian Auriol
Comments:By: Michael Jerris (mikej) 2005-07-29 12:26:16

First off, for feature request, we recommend created a bounty on the wiki to get the best response, that being said, we can leave this open for a week to see if there are any takers.  After all of that, it would have to be built as a dialplan function in head, which will not directly translate back to 1.0.x branch, but it should be faily trivial to make an app that does the same thing.

By: Olle Johansson (oej) 2005-07-29 13:49:49

Moving this to the "Feature requests" category. In the future, please report issues in the correct category, thank you!

By: seb7 (seb7) 2005-07-29 14:00:49

Hi Olle! Please can someone add something about the "Feature requests" category to http://www.digium.com/bugguidelines.html?  Otherwise how are we supposed to know? ;-) Yes, I think we may have been told at AstriCon Europe, but I wasn't sure, so I just followed the bugguidelines. (I did agonsise over this before posting though.)

By: twisted (twisted) 2005-07-29 14:06:29

seb7, seeing as that is a category option on reporting, it should be obvious and not have to be listed in the bug guidelines.  That aside...

I can see the usefulness of this feature.  If you start a bounty for it, I may be willing to add to it.

By: Tilghman Lesher (tilghman) 2005-07-30 13:38:15

Well, the biggest gotcha is that this, if implemented, will be a function in HEAD, and since it's a new feature, it won't be backported to STABLE (not that STABLE even has functions; it'd have to be a separate implementation of an application in STABLE).

By: Tilghman Lesher (tilghman) 2005-07-30 14:48:34

Patch uploaded.  If I'm not terribly mistaken, I believe this will make the source in HEAD able to be used in STABLE.

Disclaimer on file.

By: Olle Johansson (oej) 2005-07-31 04:30:41

Shouldn't this be a function instead of an application?

By: Tilghman Lesher (tilghman) 2005-07-31 10:14:49

oej:  read the code and you'll see that it's a function for everything 1.2 and higher and an application for everything before that (i.e. 1.0.x).

By: Olle Johansson (oej) 2005-07-31 10:40:18

I read the bug report that starts with " This is a dialplan application"... Sorry.

By: seb7 (seb7) 2005-08-01 09:33:32

Thank you very much for your speedy patch Corydon76!

Should I test this as soon as I can, or wait for the various reviews to happen?

By: Michael Jerris (mikej) 2005-08-01 09:40:42

go ahead and test now.  Feedback appretiated.

By: Michael Jerris (mikej) 2005-08-07 23:58:40

bug suspended due to no response.  Re-open when you have testing results please.