<?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[Set presence on any extension]]></title><description><![CDATA[<p dir="auto">What I would like to do is click on an extension and then set the presence for that extension. I want to do this so our admin staff can update the presence for other staff (like is someone calls in sick etc…).</p>
<p dir="auto">Can you give me any hints how I could do this?</p>
<p dir="auto">Thanks</p>
]]></description><link>http://localhost:4567/topic/177/set-presence-on-any-extension</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 07:48:01 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/177.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Nov 2009 11:01:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set presence on any extension on Tue, 17 Nov 2009 15:13:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi Brett,</p>
<p dir="auto">Although I have not tried, FOP2 does not consider the server for the button matching, so, as long as the channel name is the same (no matter the server they are) it will work.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/789</link><guid isPermaLink="true">http://localhost:4567/post/789</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 17 Nov 2009 15:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to Set presence on any extension on Tue, 17 Nov 2009 12:44:58 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicolás,</p>
<p dir="auto">I have found a way through the dialplan but I have a number of servers and I have noticed that the db entries are in the server where the extensions resides. FOP2 is installed in server=0 but the extension is in server=2 so I need to run it on server=2 can you tell me if this is correct?</p>
<p dir="auto">I am also working a web interface with PHP/AMI that does the same thing.</p>
<p dir="auto">;example<br />
exten =&gt; s,1,Answer<br />
exten =&gt; s,n,Wait(1)<br />
exten =&gt; s,n,Read(WHATEXT,pcg/pcg_exten,3,,1,3)<br />
exten =&gt; s,n,GotoIf($[${LEN(${WHATEXT})} = 3 ]?5:1);three digit extension<br />
exten =&gt; s,5,Set(CHAN=SIP/${WHATEXT})<br />
exten =&gt; s,n,Set(TIMEOUT(digit)=3)<br />
exten =&gt; s,n,Set(TIMEOUT(response)=6)<br />
exten =&gt; s,n,BackGround(pcg/pcg_avaliable)<br />
exten =&gt; s,n,BackGround(pcg/pcg_inspection)<br />
exten =&gt; s,n,BackGround(pcg/pcg_outoffice)<br />
exten =&gt; s,n,BackGround(pcg/pcg_leave)<br />
exten =&gt; s,n,BackGround(silence/5)<br />
exten =&gt; s,n,Hangup()<br />
;Available<br />
exten =&gt; 0,1,Set(DB_VAL=${DB_DELETE(fop2state/${CHAN})})<br />
exten =&gt; 0,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: )<br />
exten =&gt; 0,n,Playback(pcg/pcg_sset)<br />
exten =&gt; 0,n,Hangup()<br />
;Inspection<br />
exten =&gt; 1,1,Set(DB(fop2state/${CHAN})=Inspection)<br />
exten =&gt; 1,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: Inspection)<br />
exten =&gt; 1,n,Playback(pcg/pcg_sset)<br />
exten =&gt; 1,n,Hangup()<br />
;Out of office<br />
exten =&gt; 2,1,Set(DB(fop2state/${CHAN})=Out of office)<br />
exten =&gt; 2,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: Out of office)<br />
exten =&gt; 2,n,Playback(pcg/pcg_sset)<br />
exten =&gt; 2,n,Hangup()<br />
;Leave<br />
exten =&gt; 3,1,Set(DB(fop2state/${CHAN})=Leave)<br />
exten =&gt; 3,n,UserEvent(FOP2ASTDB|Family: fop2state|Channel: ${CHAN}|Value: Leave)<br />
exten =&gt; 3,n,Playback(pcg/pcg_sset)<br />
exten =&gt; 3,n,Hangup()</p>
<p dir="auto">exten =&gt; t,1,Hangup()</p>
<p dir="auto">exten =&gt; i,1,Playback(pcg/pcg_invalid)<br />
exten =&gt; i,2,Goto(fop-presence,s,1)<br />
exten =&gt; i,3,Hangup()</p>
<p dir="auto">Also thanks for a superb product!</p>
<p dir="auto">Brett</p>
]]></description><link>http://localhost:4567/post/788</link><guid isPermaLink="true">http://localhost:4567/post/788</guid><dc:creator><![CDATA[bwilks]]></dc:creator><pubDate>Tue, 17 Nov 2009 12:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Set presence on any extension on Mon, 16 Nov 2009 11:41:36 GMT]]></title><description><![CDATA[<p dir="auto">You can't when logged as other user.</p>
<p dir="auto">One way would be to set a master password and login as every extension and set its presence. Kind of cumbersone but it will work.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/787</link><guid isPermaLink="true">http://localhost:4567/post/787</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Mon, 16 Nov 2009 11:41:36 GMT</pubDate></item></channel></rss>