<?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[Manually set extension states]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I have a custom application where I want certain events to trigger extension states automatically. For example, I'd like to be able to say extension 3200 is busy and get the counter started without actually generating a telephone call. Then I'd like to be able to mark it offline, online, inuse, busy, etc manually either by dbset or some other external script.</p>
<p dir="auto">In addition, I'd really like to make 4-5 different "states' an extension can be in and have the whole box change color (like busy-&gt;idle, but more states).</p>
<p dir="auto">Is this possible?</p>
<p dir="auto">Thanks,<br />
Brett</p>
]]></description><link>http://localhost:4567/topic/474/manually-set-extension-states</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 07:47:02 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/474.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 03 Aug 2010 14:32:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Manually set extension states on Wed, 18 Aug 2010 19:24:23 GMT]]></title><description><![CDATA[<p dir="auto">You cannot change that state, you can change the presence state, or maybe the DND state, but not the registered state (grayed out button).</p>
<p dir="auto">Here is the user event needed to change presence state:</p>
<pre><code>Action: UserEvent
UserEvent: FOP2ASTDB
Family: fop2state
Channel: SIP/606
Value: Break
</code></pre>
<p dir="auto">At the same time you must set that state in the astdb if you want it to be persistent:</p>
<pre><code>/fop2state/SIP/606                                : Break 
</code></pre>
<p dir="auto">The best way to play with your custom states is to start fop2_server in debug mode level 15</p>
<pre><code>/usr/local/fop2/fop2_server -X 15
</code></pre>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/2114</link><guid isPermaLink="true">http://localhost:4567/post/2114</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 Aug 2010 19:24:23 GMT</pubDate></item><item><title><![CDATA[Reply to Manually set extension states on Wed, 18 Aug 2010 10:10:43 GMT]]></title><description><![CDATA[<p dir="auto">ok, how can I catch those events to be able to change my user's state from offline to online for exemple? Because when I'm using my script, the user's state is not changing so i'm missing a bit of code that will allow me to make this change.</p>
]]></description><link>http://localhost:4567/post/2113</link><guid isPermaLink="true">http://localhost:4567/post/2113</guid><dc:creator><![CDATA[stilobix]]></dc:creator><pubDate>Wed, 18 Aug 2010 10:10:43 GMT</pubDate></item><item><title><![CDATA[Reply to Manually set extension states on Wed, 18 Aug 2010 09:55:34 GMT]]></title><description><![CDATA[<p dir="auto">The gray state in fop2 is the sip registration/qualify status. It is not set in astdb, it is informed by asterisk using manager events. Best regards,</p>
]]></description><link>http://localhost:4567/post/2112</link><guid isPermaLink="true">http://localhost:4567/post/2112</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 Aug 2010 09:55:34 GMT</pubDate></item><item><title><![CDATA[Reply to Manually set extension states on Wed, 18 Aug 2010 05:53:21 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys,</p>
<p dir="auto">I am doing a quite similar things on my asterisk and am having some issue with my users states.</p>
<p dir="auto">I am using Adhearsion (a fully featured framework using ruby) to logon / logoff my user on a device. But The thing is I have no idea on how to change or set my user's state so that I can see him online or offline on the FOP2 web interface. When I'm using my script, the user is logged on the device but on the interface he still grey (shown as offline).</p>
<p dir="auto">Where is this state data stored in the astdb? or how can I do to be able to reflect my user's real state?</p>
<p dir="auto">Thanks for your help</p>
]]></description><link>http://localhost:4567/post/2111</link><guid isPermaLink="true">http://localhost:4567/post/2111</guid><dc:creator><![CDATA[stilobix]]></dc:creator><pubDate>Wed, 18 Aug 2010 05:53:21 GMT</pubDate></item><item><title><![CDATA[Reply to Manually set extension states on Tue, 03 Aug 2010 21:36:30 GMT]]></title><description><![CDATA[<p dir="auto">Sorry. I do not think it is possible without rewriting or heavily modifying the whole thing: both client and server. You will have to use AMI Userevents for that, astdb is not enough. But it must be used too to have persistent fake states. The fop2 presence works like that, using astdb to store the presence state. And you can have any number of presence states, but they affect only the presence icon, not the whole button color.</p>
]]></description><link>http://localhost:4567/post/2110</link><guid isPermaLink="true">http://localhost:4567/post/2110</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 03 Aug 2010 21:36:30 GMT</pubDate></item></channel></rss>