Bruno.Voigt@ic3s.de
2005-Jun-04 01:52 UTC
[Asterisk-Users] SNOM extension lights programmable, eg. based on asterisk variable setting?
Hi all, I've programmed on a SNOM function key the destination "**77" which in my extension plan reprograms/toggles an asterisk DB variable which I use in the extension plan for some call routing decisions. I would like the SNOM extension light to permanently reflect the current toggle status of my application logic/asterisk DB variable. Is something like that possible to do in Asterisk/stable or CVS? Or would it be possible to realize this via sipsak etc.? Any hints would be greatly appreciated.. TIY, Bruno
Olle E. Johansson
2005-Jun-04 02:30 UTC
[Asterisk-Users] SNOM extension lights programmable, eg. based on asterisk variable setting?
Bruno.Voigt@ic3s.de wrote:> Hi all, > > I've programmed on a SNOM function key the destination "**77" > which in my extension plan reprograms/toggles an asterisk DB variable > which I use in the extension plan for some call routing decisions. > > I would like the SNOM extension light to permanently > reflect the current toggle status of my application logic/asterisk DB > variable. > > Is something like that possible to do in Asterisk/stable or CVS?I do not think so. The status notification depends on extension and device availability. Thinking about it, you might be able to do something clever with the agent channel, making an agent available or not depending on the status of your db variable. If you get that to work, please tell me and share the solution to the list. The agent channel can be very useful even for things outside of call queues... Yes, it's an ugly solution, a workaround.. ;-) /O ---- Astricon - the Asterisk User's conference - Madrid June 15-17 -- http://www.astricon.net/europe/ - Register today! -- Listen to Mark Spencer, Ed Guy, Kevin Fleming and many more!
Josh Dady
2005-Jun-06 07:44 UTC
[Asterisk-Users] SNOM extension lights programmable, eg. based on asterisk variable setting?
On Jun 4, 2005, at 4:52 AM, Bruno.Voigt@ic3s.de wrote:> I would like the SNOM extension light to permanently > reflect the current toggle status of my application logic/asterisk DB > variable.There's a phantom device in bristuff that can be used for this sort of thing. When you toggle the dialplan variable, you'd do: **77,n,Devstate(splat|2) And then set a hint: **77,hint,DS/splat Ultimately it stores device states in same database you're using, so you could switch on them directly rather than keeping a second set of variables and needing to keep them in sync. -- Joshua P. Dady -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 3721 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20050606/b7b929d0/smime.bin
Bruno.Voigt@ic3s.de
2005-Jun-06 13:39 UTC
[Asterisk-Users] Re: SNOM extension lights programmable, eg. based on asterisk variable setting?
From: Josh Dady <jpd@indecisive.com>>> I would like the SNOM extension light to permanently >> reflect the current toggle status of my application logic/asterisk DB >> variable. > >There's a phantom device in bristuff that can be used for this sort >of thing. When you toggle the dialplan variable, you'd do: > **77,n,Devstate(splat|2) > >And then set a hint: > **77,hint,DS/splat > >Ultimately it stores device states in same database you're using, so >you could switch on them directly rather than keeping a second set of >variables and needing to keep them in sync.Hi, this is great - it just works great. Thank you very much! I want to manage this dialplan variable for each extension separately, unfortunately this doesn't work: **77,hint,DS/splat${CALLERIDNUM} Do you have an idea for that? Is there an easy place to patch it in asterisk 1.0.7 stable? Will it be possible with CVS-head? I'm thinking about putting each device belonging to an extension in together in their own context just consisting eg. [from-internal-104] include => from-internal **77,hint,DS/splat104 [from-internal-105] include => from-internal **77,hint,DS/splat105 Is there a more elegant and compact solution?! bye, Bruno
Seemingly Similar Threads
- BRIstuff/QuadBRI problem: Ring requested on unconfigured channel 255/255 span 5
- Asterisk 1.0.9: TE411P replacement for TE410P 1stgen causes crashes
- Wifi UT Starcom F1000: Raising Audio volume Level via asterisk?
- Passing video calls / bearer capability thru PRI
- normalised Voigt random numbers