AW: [Flash Operator Panel] astdb behavior
- From: "Sven Neukirchner" <s.neukirchner@xxxxxxxxx>
- Date: Mon, 21 May 2007 15:53:01 +0200
- Mailing-list: contact operator_panel-help@lists.house.com.ar; run by ezmlm
- Thread-index: AceRqeTzlEELvmIcREK5fQymvtPDigKBNeAg
Hi,
can you give me a sample how it works?
I want to make a button change when a agent is going in pause.
I use this macro:
[macro-agentpause]
exten => s,1,Answer
exten => s,n,NoOP(Nebenstelle == ${ARG1})
exten => s,n,Set(AgentPause=${DB(AgentPause/${ARG1})})
exten => s,n,NoOP(AgentPause == ${AgentPause})
exten => s,n,GotoIf($["${AgentPause}" = "PAUSE"]?goon:gooff)
exten => s,n(goon),Set(DB(AgentPause/${ARG1})=UNPAUSE)
exten => s,n,UserEvent(ASTDB|Family: AgentPause^Value: UNPAUSE)
exten => s,n,UnpauseQueueMember(,SIP/${ARG1})
exten => s,n,DBdel(AgentPause/${ARG1})
exten => s,n(on),Playback(custom/online)
exten => s,n,Hangup
exten => s,n(gooff),Set(DB(AgentPause/${ARG1})=PAUSE)
exten => s,n,UserEvent(ASTDB|Family: AgentPause^Value: PAUSE)
exten => s,n,PauseQueueMember(,SIP/${ARG1})
exten => s,n,Playback(custom/offline)
exten => s,n,Hangup
op_buttons.cfg:
[SIP/605]
Position=n
Label="605"
Extension=605
Context=from-intern
Icon=4
Astdbkey=605
op_astdb.cfg:
[SIP/605]
Position=n
Label="605"
Extension=605
Context=from-intern
Icon=4
Astdbkey=605
[AgentPause]
settext=Pause
flip=1
setalpha=70|100
state=busy
fopledcolor=0x001020^0|0x00A000^0
But I got the same problem.
I need to restart the operation panel.
Thanks for your help.
Sven
-----Ursprüngliche Nachricht-----
Von: Diego Andrés Asenjo Gonzalez [mailto:dasenjo@xxxxxxxxx]
Gesendet: Dienstag, 8. Mai 2007 21:54
An: operator_panel@xxxxxxxxxxxxxxxxxx
Betreff: Re: [Flash Operator Panel] astdb behavior
Hi Nicolás,
Nicolás Gudiño escribió:
On May 8, 2007, at 11:57 AM, Diego Andrés Asenjo Gonzalez wrote:
Hi list!
I'm now using the 0.27 and working with some keys in the asterisk
database. The Astdbkey param in the op_buttons make the things come
easier, but I still have a problem:
I need to restart the panel to see the changes of the asterisk database,
so the panel read the initial value of the key (request_astdb_status())
and show it all the time.
If you add/delete database entries via the dialplan, you will need to
use UserEvents as specified in the RECIPES file. Do not forget to add
the Channel parameter inside the UserEvent, as some versions of
Asterisk don't include the Channel name inside the manager event. Best
regards,
Thanks a lot! It is working now, the combination between teh asterisk
database and the UserEvents allow ver flexible configurations in the
panel. Now we also can improve the integration between DeStar
http://destar.berlios.de/ and the panel :) .
Bye and thanks again.
Flash Operator Panel Mailing List
To unsubscribe send an empty message to:
<operator_panel-unsubscribe@xxxxxxxxxxxxxxxxxx>
To get help send an empty message to:
<operator_panel-help@xxxxxxxxxxxxxxxxxx>
The archives can be found at:
http://www.asternic.org/archives/maillist.html
Flash Operator Panel Mailing List
To unsubscribe send an empty message to:
<operator_panel-unsubscribe@xxxxxxxxxxxxxxxxxx>
To get help send an empty message to:
<operator_panel-help@xxxxxxxxxxxxxxxxxx>
The archives can be found at:
http://www.asternic.org/archives/maillist.html
- References to:
- Diego Andrés Asenjo Gonzalez
|