[asterisk-users] Can QUEUE member be assigned from a GlobalVar set in EXTENSIONS.CONF?

Gary G. Hendershot GHendershot at cox.net
Sat Sep 2 11:56:46 MST 2006


That is very creative way to get to where I want to be ... I would not have
thought of that angle ... I will give this a try ... Thanks ...

G.Hendershot 


-----Original Message-----
From: Tim St. Pierre [mailto:tim at communicatefreely.net] 
Sent: Friday, September 01, 2006 10:43 PM
To: GHendershot at cox.net; Asterisk Users Mailing List - Non-Commercial
Discussion
Subject: Re: [asterisk-users] Can QUEUE member be assigned from a GlobalVar
set in EXTENSIONS.CONF?

Here's an idea.  

Set up static queues that go to named extensions using the Local channel, at
a specified context.

In this context, specify your mappings using the global variables

Ie.
; Queue
member => Local/techsupport at support-people

;Extensions.conf
[globals]
TECHSUPPORT=SIP/5101
SALES=SIP/5102

[support-people]
exten => techsupport,1,Dial(${TECHSUPPORT}|20t)
exten => techsupport,2,Voicemail(${TECHSUPPORT}|su)
exten => sales,1,Dial(${SALES}|20t)
exten => sales,2,Voicemail(${SALES}|su)

This sets all the variables within extensions.conf, and uses the local
channel to translate the placeholders.

I haven't tried it, but it should work in theory.

On September 1, 2006 17:52, Gary G. Hendershot wrote:
> what I would like to do is set some global variables in 
> EXTENSIONS.CONF then read the contents of these to use as "members" of 
> a QUEUE in QUEUES.CONF ...
>
> example: (from [global] section of extensions.conf)
>
>     TECH-SUPPORT=SIP/5000    ; set value of TECH-SUPORT to be SIP/5000
>
> example: (from [tech-support] queues.conf]
>
>     member => ${TECH-SUPPORT}
>
>
> my intent here is have a central location where I can easily 
> assign/change members of the queue.
>
> Should this work ???  I have tried it and it dont seem too but then I 
> have done something stupid in my syntax.  I have confrmed that the 
> ${TECH-SUPPORT} variable is assigned properly, is available and works 
> as expected within EXTENSIONS.CONF, but it seems it cant be used in 
> QUEUE.CONF.
>
> The agents scenario will not work for my application as it is a small 
> 5 person shop where everyone wears 5 hats.  There really are no 
> dedicated agents and my users would object to having to logon/logoff and
so on.
>
> I can of course "hard wire" the QUEUES.CONF with the values, have 
> tried this and it works fine!  I was just looking for lazy way to 
> manage it.  Any ideas on this would be appreciated.
>
> Regards
>
> G.Hendershot

--
Tim St. Pierre

IP telephony specialist
sip://5101@communicatefreely.net
Toronto: 647 722 6930
Toll-Free 1 888 488 6940
tim at communicatefreely.net




More information about the asterisk-users mailing list