DND status update
-
Hi,
If I change the status of a FOP2 on the "Do not Disturb",CLI> database show /fop2state/SIP/10194 : Do not DisturbIf I change the status from asterisk
exten => 777,1,Answer() exten => 777,n,Wait(1) exten => 777,n,Set(CHAN=${CUT(CHANNEL,-,1)}) exten => 777,n,Set(DB(fop2state/${CHAN})=Break)CLI> database show /fop2state/SIP/10194 : Breakbut the button in the FOP2 status remains "Do not Disturb", until I restart fop2 service.
How do I update a user's status?asterisk 1.8
centos 6.2
fop2 2.26 -
You must fire a user event for real time notifications. Astdb entries are for persistent storage of that state, but those changes are not notified/broadcasted via ami. Try something like this:
exten => 777,1,Answer() exten => 777,n,Wait(1) exten => 777,n,Set(CHAN=${CUT(CHANNEL,-,1)}) exten => 777,n,Set(DB(fop2state/${CHAN})=Break) exten => 777,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Break ) -
-
Hello,
Another problem, I need to change in stutus through AMI.asterisk -rx "database put fop2state SIP/00049 Break"CLI> database show /fop2state/SIP/00049 : BreakWhen running UserEvent over AMI
Action: UserEvent UserEvent: FOP2ASTDB Family: fop2state Channel: SIP/0049 Value: Break[root@aster ~]# ./ami spawn telnet 127.0.0.1 5038 Trying 127.0.0.1... Action: Login Username: admin Secret: amp111 Events: off Action: UserEvent UserEvent: FOP2ASTDB Family: fop2state Channel: 00049 Value: Break Connected to 127.0.0.1. Escape character is '^]'. Asterisk Call Manager/1.1 Response: Success Message: Authentication accepted Response: Success Message: Event SentBut in the FOP2 user status does not change
-
-
-
I know this tread has been inactive for a while but I'am working on a similar project. What value to "UserEvent" should I use when the user becomes "Available"? I delete the database entry but I wonder what to do so the FOP2 status doesn't display anything.
An empty Value?
Action: UserEvent UserEvent: FOP2ASTDB Family: fop2state Channel: SIP/{EXT} Value:Thanks
Daniel -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
