<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[DND status update]]></title><description><![CDATA[<p dir="auto">Hi,<br />
If I change the status of a FOP2 on the "Do not Disturb",</p>
<pre><code>CLI&gt; database show
/fop2state/SIP/10194                              : Do not Disturb
</code></pre>
<p dir="auto">If I change the status from asterisk</p>
<pre><code>exten =&gt; 777,1,Answer()
exten =&gt; 777,n,Wait(1)
exten =&gt; 777,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; 777,n,Set(DB(fop2state/${CHAN})=Break)
</code></pre>
<pre><code>CLI&gt; database show
/fop2state/SIP/10194                              : Break
</code></pre>
<p dir="auto">but the button in the FOP2 status remains "Do not Disturb", until I restart fop2 service.<br />
How do I update a user's status?</p>
<p dir="auto">asterisk 1.8<br />
centos 6.2<br />
fop2 2.26</p>
]]></description><link>http://localhost:4567/topic/1236/dnd-status-update</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 15:02:03 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1236.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Aug 2012 11:18:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DND status update on Mon, 03 Feb 2014 17:06:29 GMT]]></title><description><![CDATA[<p dir="auto">As you guessed, you must pass an empty value to clear the presence state.</p>
]]></description><link>http://localhost:4567/post/5547</link><guid isPermaLink="true">http://localhost:4567/post/5547</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 03 Feb 2014 17:06:29 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Mon, 03 Feb 2014 15:44:45 GMT]]></title><description><![CDATA[<p dir="auto">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.</p>
<p dir="auto">An empty Value?</p>
<pre><code>Action: UserEvent
UserEvent: FOP2ASTDB
Family: fop2state
Channel: SIP/{EXT}
Value: 
</code></pre>
<p dir="auto">Thanks<br />
Daniel</p>
]]></description><link>http://localhost:4567/post/5546</link><guid isPermaLink="true">http://localhost:4567/post/5546</guid><dc:creator><![CDATA[dstamour]]></dc:creator><pubDate>Mon, 03 Feb 2014 15:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Mon, 24 Sep 2012 06:19:04 GMT]]></title><description><![CDATA[<p dir="auto">:oops:<br />
thanks</p>
]]></description><link>http://localhost:4567/post/5545</link><guid isPermaLink="true">http://localhost:4567/post/5545</guid><dc:creator><![CDATA[ruslan]]></dc:creator><pubDate>Mon, 24 Sep 2012 06:19:04 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Tue, 18 Sep 2012 16:56:06 GMT]]></title><description><![CDATA[<p dir="auto">The Channel is wrong on one of your pasted events, it does not include SIP/</p>
]]></description><link>http://localhost:4567/post/5544</link><guid isPermaLink="true">http://localhost:4567/post/5544</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 18 Sep 2012 16:56:06 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Tue, 18 Sep 2012 15:06:48 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Another problem, I need to change in stutus through AMI.</p>
<pre><code>asterisk -rx "database put fop2state SIP/00049 Break"
</code></pre>
<pre><code>CLI&gt; database show
/fop2state/SIP/00049                              : Break 
</code></pre>
<p dir="auto">When running UserEvent over AMI</p>
<pre><code>Action: UserEvent
UserEvent: FOP2ASTDB
Family: fop2state
Channel: SIP/0049
Value: Break
</code></pre>
<pre><code>[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 Sent
</code></pre>
<p dir="auto">But in the FOP2 user status does not change</p>
]]></description><link>http://localhost:4567/post/5543</link><guid isPermaLink="true">http://localhost:4567/post/5543</guid><dc:creator><![CDATA[ruslan]]></dc:creator><pubDate>Tue, 18 Sep 2012 15:06:48 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Fri, 31 Aug 2012 10:31:56 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, its work  <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f604.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--smile" style="height:1.4em;width:auto;vertical-align:middle" title=":D" alt="😄" /></p>
]]></description><link>http://localhost:4567/post/5542</link><guid isPermaLink="true">http://localhost:4567/post/5542</guid><dc:creator><![CDATA[ruslan]]></dc:creator><pubDate>Fri, 31 Aug 2012 10:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to DND status update on Fri, 31 Aug 2012 01:25:10 GMT]]></title><description><![CDATA[<p dir="auto">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:</p>
<pre><code>
exten =&gt; 777,1,Answer()
exten =&gt; 777,n,Wait(1)
exten =&gt; 777,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; 777,n,Set(DB(fop2state/${CHAN})=Break)
exten =&gt; 777,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Break )
</code></pre>
]]></description><link>http://localhost:4567/post/5541</link><guid isPermaLink="true">http://localhost:4567/post/5541</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 31 Aug 2012 01:25:10 GMT</pubDate></item></channel></rss>