<?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[Getting DND (presence) status via php]]></title><description><![CDATA[<p dir="auto">I'm trying to make a simple webpage to show a single extension's status.  I'm going to use this as their phone idle screen.  How do I retrieve the status for a single extension via a standalone php page?</p>
<p dir="auto">Thanks.</p>
]]></description><link>http://localhost:4567/topic/1409/getting-dnd-presence-status-via-php</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 08:05:06 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1409.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 01 Apr 2013 14:45:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Getting DND (presence) status via php on Mon, 08 Apr 2013 14:43:22 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">just wondering if it could be displayed all the time without having to use the mouseover.</p>
</blockquote>
<p dir="auto">Not without coding. It <em>might</em> be possible to use jcallbakc.js hacks to do something about it, but I am not totally sure.</p>
]]></description><link>http://localhost:4567/post/6183</link><guid isPermaLink="true">http://localhost:4567/post/6183</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 08 Apr 2013 14:43:22 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Sat, 06 Apr 2013 23:58:04 GMT]]></title><description><![CDATA[<p dir="auto">just wondering if it could be displayed all the time without having to use the mouseover.</p>
]]></description><link>http://localhost:4567/post/6182</link><guid isPermaLink="true">http://localhost:4567/post/6182</guid><dc:creator><![CDATA[tbolick]]></dc:creator><pubDate>Sat, 06 Apr 2013 23:58:04 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Fri, 05 Apr 2013 18:59:56 GMT]]></title><description><![CDATA[<p dir="auto">If you mouse over the icon, it will display the full presence text.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/6181</link><guid isPermaLink="true">http://localhost:4567/post/6181</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 05 Apr 2013 18:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Fri, 05 Apr 2013 15:56:20 GMT]]></title><description><![CDATA[<p dir="auto">This was exactly what I needed, and I learned some extra stuff as well.  I now have the idlehome screen of my phone showing my DND presence.</p>
<p dir="auto">Them only other thing I'd like to see is have the panel show the presence as text in addition to the color/hint on the FOP2 panel.</p>
<p dir="auto">Thanks</p>
]]></description><link>http://localhost:4567/post/6180</link><guid isPermaLink="true">http://localhost:4567/post/6180</guid><dc:creator><![CDATA[tbolick]]></dc:creator><pubDate>Fri, 05 Apr 2013 15:56:20 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Thu, 04 Apr 2013 22:56:08 GMT]]></title><description><![CDATA[<p dir="auto">I am sorry, I read your message (body) and did not pay much attention to the subject. I was talking about status (busy,fre,ringing) but you were talking about presence. In that case you can query the asterisk database (astdb) where that value is stored (family fop2state). And you can use Ajam to retrieve that value or asterisk itself:</p>
<p dir="auto">asterisk -rx "database show fop2state"</p>
]]></description><link>http://localhost:4567/post/6179</link><guid isPermaLink="true">http://localhost:4567/post/6179</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 04 Apr 2013 22:56:08 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Thu, 04 Apr 2013 21:40:02 GMT]]></title><description><![CDATA[<p dir="auto">If you say so.  I just thought there was somewhere that stored I'd set my status in FOP2 to be "out to lunch".  since I can restart the service and retain that info (can't I?)  I am not looking for off hook or in call, just the DND status.</p>
<p dir="auto">I really think a little API option to set and query statuses would be useful, but maybe that's another product.</p>
<p dir="auto">Tom...</p>
]]></description><link>http://localhost:4567/post/6178</link><guid isPermaLink="true">http://localhost:4567/post/6178</guid><dc:creator><![CDATA[tbolick]]></dc:creator><pubDate>Thu, 04 Apr 2013 21:40:02 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Tue, 02 Apr 2013 22:12:42 GMT]]></title><description><![CDATA[<p dir="auto">Fop2 has its own daemon that has its own state machine. It does not store data in any database or anything like it. If you want to see how fop2 talks to its clients, you can run it with debug level 12 and capture output. However, as I said before, it is not the right tool for the job in your case. You should be using ajam.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/6177</link><guid isPermaLink="true">http://localhost:4567/post/6177</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 02 Apr 2013 22:12:42 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Tue, 02 Apr 2013 20:14:18 GMT]]></title><description><![CDATA[<p dir="auto">I was hoping that the status info was somehow available in a file or other database that could be accessed directly.  I want to allow people to use the user panel to set their status and then query that status as well.  I wonder if a callback to store that status elsewhere would work.</p>
]]></description><link>http://localhost:4567/post/6176</link><guid isPermaLink="true">http://localhost:4567/post/6176</guid><dc:creator><![CDATA[tbolick]]></dc:creator><pubDate>Tue, 02 Apr 2013 20:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to Getting DND (presence) status via php on Tue, 02 Apr 2013 18:36:15 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">FOP2 is not a php application. If you want to retrieve asterisk status from a php application the easier and best option is to enable AJAM in asterisk and use that.</p>
<p dir="auto"><a href="https://wiki.asterisk.org/wiki/display/AST/Allow+Manager+Access+via+HTTP" rel="nofollow ugc">https://wiki.asterisk.org/wiki/display/ ... s+via+HTTP</a></p>
<p dir="auto">FOP2 uses a socket connection and custom protocol that is much much harder to work on, and it does not have a way to "query" for individual status.</p>
]]></description><link>http://localhost:4567/post/6175</link><guid isPermaLink="true">http://localhost:4567/post/6175</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 02 Apr 2013 18:36:15 GMT</pubDate></item></channel></rss>