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

Tim St. Pierre tim at communicatefreely.net
Fri Sep 1 19:42:33 MST 2006


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20060901/826cd720/attachment.pgp


More information about the asterisk-users mailing list