Updating Presence settings on Buttons via Feature Codes
We are using Asternic PRO/DEV
in file /etc/asterisk/extensions_custom_asternic_pauses.conf
[asternic-pauses]
exten => *50,1,Answer
exten => *50,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten => *50,n,Set(CHAN=${CUT(CHAN,/,2)})
exten => *50,n,Set(AMPUSER=${DB(DEVICE/${CHAN}/user)})
exten => *50,n,PauseQueueMember(,Local/${AMPUSER}@from-queue/n,,Lunch)
exten => *50,n,Noop(Pause Status ${PQMSTATUS})
exten => *50,n,GotoIf($["${PQMSTATUS}" = "PAUSED"]?log)
exten => *50,n,Hangup
exten => *50,n(log),QueueLog(NONE,${UNIQUEID},${DB(AMPUSER/${AMPUSER}/cidname)},PAUSE,Lunch)
exten => *50,n,Set(DB(PAUSECUSTOM/AGENT/${AMPUSER})=Lunch:${EPOCH})
exten => *50,n,Hangup
presence on FOP2 is changed to "Lunch" but the label(color) is not