<?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[Use of Away in Presence Values]]></title><description><![CDATA[<p dir="auto">We were trying to change the list of Presence values available in the operator panel to match one of our other products. I modified presence.js to add the values. One of the values I added was Away.</p>
<p dir="auto">presence['Away']   = '#57BCD9';</p>
<p dir="auto">This displays correctly in the operator panel, but when the user selects this value, the whole UI refreshes. I checked the log and it appears that Away is treated differently than the other values:</p>
<p dir="auto">75.85.95.105:50844  &lt;= &lt;msg data="22|setastdb|fop2state~4159672901~Away|45fb798c307825f033feb1bb61e587b6" /&gt;</p>
<p dir="auto">127.0.0.1            -&gt; Action: Command<br />
127.0.0.1            -&gt; Command: database put fop2state USER/4159672901 "^C^F²"</p>
<p dir="auto">127.0.0.1            -&gt; Action: UserEvent<br />
127.0.0.1            -&gt; UserEvent: FOP2ASTDB<br />
127.0.0.1            -&gt; Family: fop2state<br />
127.0.0.1            -&gt; Key: USER/4159672901<br />
127.0.0.1            -&gt; Channel: USER/4159672901<br />
127.0.0.1            -&gt; Value: ^C^F²</p>
<p dir="auto">127.0.0.1            &lt;- Response: Follows<br />
127.0.0.1            &lt;- Privilege: Command<br />
127.0.0.1            &lt;- Updated database successfully<br />
--END COMMAND--</p>
<p dir="auto">127.0.0.1            &lt;- Response: Success<br />
127.0.0.1            &lt;- Message: Event Sent</p>
<p dir="auto">The other values appear to work as expected. What is special about Away? Is there some way we can use the value Away?</p>
]]></description><link>http://localhost:4567/topic/1829/use-of-away-in-presence-values</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 04:44:31 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1829.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Oct 2014 15:08:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Use of Away in Presence Values on Tue, 14 Oct 2014 23:55:03 GMT]]></title><description><![CDATA[<p dir="auto">Not sure what fop2 version you tried. I was not able to reproduce the issue. I have set the presence value to Away, just as you describe, and it works fine. I also chose the other presence and typed "Away" and it also works fine. Perhaps you have some buggy version, please try with 2.28 final.</p>
]]></description><link>http://localhost:4567/post/7943</link><guid isPermaLink="true">http://localhost:4567/post/7943</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 14 Oct 2014 23:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to Use of Away in Presence Values on Tue, 14 Oct 2014 15:49:10 GMT]]></title><description><![CDATA[<p dir="auto">I rechecked the presence file (deleted the entry and retyped it without copying from another line) and the problem persists. If the problem were in the presence.js file, I would expect the command sent to the fop2 server to show the problem, yet the translation appears to occur in the server.</p>
<p dir="auto">[root@ASTERISK18 fop2]# file js/presence.js<br />
js/presence.js: UTF-8 Unicode C++ program text</p>
<p dir="auto">Correct here in the command sent to the server<br />
75.85.118.107:52197  &lt;= &lt;msg data="23|setastdb|fop2state~4159672901~Away|0c81ee79a3e68fb6a9f03eb4bdeb5461" /&gt;</p>
<p dir="auto">Yet, incorrect when the action is sent to Asterisk.<br />
127.0.0.1            -&gt; Action: Command<br />
127.0.0.1            -&gt; Command: database put fop2state USER/4159672901 "^C^F²"</p>
<p dir="auto">I got around the problem by changing the command sent from fop2.js to setastdb2 and handling it in a plugin. This is with the same entry in presence.js:</p>
<p dir="auto">75.85.118.107:52323  &lt;= &lt;msg data="23|setastdb2|fop2state~4159672901~Away|0c9f5d4fcf8982e0d9b3e6f57a486fe3" /&gt;</p>
<p dir="auto">In Headland pre-command setastdb plugin<br />
127.0.0.1            -&gt; Command: database put fop2state USER/4159672901 "Away"<br />
127.0.0.1            -&gt; Action: Command<br />
127.0.0.1            -&gt; ActionID: 62</p>
]]></description><link>http://localhost:4567/post/7942</link><guid isPermaLink="true">http://localhost:4567/post/7942</guid><dc:creator><![CDATA[wcolling]]></dc:creator><pubDate>Tue, 14 Oct 2014 15:49:10 GMT</pubDate></item><item><title><![CDATA[Reply to Use of Away in Presence Values on Wed, 08 Oct 2014 19:38:14 GMT]]></title><description><![CDATA[<p dir="auto">It seems the presence.js file was not saved in correct format ? Do you have extended characters there in some way? What is the output from this:</p>
<p dir="auto">file /var/www/html/fop2/js/presence.js</p>
<p dir="auto">?</p>
<p dir="auto">You might want to try editing the file again, removing the Away line and typing it again.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/7941</link><guid isPermaLink="true">http://localhost:4567/post/7941</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 08 Oct 2014 19:38:14 GMT</pubDate></item></channel></rss>