<?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[Setting presence from phone]]></title><description><![CDATA[<p dir="auto">How can I set up some feature codes to allow someone to set a presence other than DND, like 'out to lunch', 'in meeting', etc?</p>
]]></description><link>http://localhost:4567/topic/1403/setting-presence-from-phone</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:25:47 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1403.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Mar 2013 05:23:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Setting presence from phone on Thu, 28 Mar 2013 21:37:38 GMT]]></title><description><![CDATA[<p dir="auto">Look at the override contexts fop2 is using, and use them as a base. be careful as the contexts are different across freepbx versions, this is just an example, you will have to look at your own extensions_override_fop2.conf file:</p>
<p dir="auto">[app-dnd-on]<br />
include =&gt; app-dnd-on-custom<br />
exten =&gt; *78,1,Answer<br />
exten =&gt; *78,n,Wait(1)<br />
exten =&gt; *78,n,Macro(user-callerid,)<br />
; added for fop2<br />
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)<br />
exten =&gt; *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})<br />
**exten =&gt; *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)<br />
exten =&gt; *78,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)<br />
**<br />
; end fop2 addition<br />
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)<br />
exten =&gt; *78,n,Set(STATE=BUSY)<br />
exten =&gt; *78,n,Gosub(app-dnd-on,sstate,1)<br />
exten =&gt; *78,n(hook_1),Playback(do-not-disturb&amp;activated)<br />
exten =&gt; *78,n,Macro(hangupcall,)<br />
exten =&gt; sstate,1,Set(DEVICE_STATE(Custom:DND${AMPUSER})=${STATE})<br />
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})<br />
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)<br />
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})<br />
exten =&gt; sstate,n,Set(ITER=1)<br />
exten =&gt; sstate,n(begin),Set(DEVICE_STATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})<br />
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])<br />
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)<br />
exten =&gt; sstate,n(return),Return()</p>
<p dir="auto">I have highlighted the part where you set the "label" to Do not disturb, that you can change for something else.</p>
]]></description><link>http://localhost:4567/post/6161</link><guid isPermaLink="true">http://localhost:4567/post/6161</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Thu, 28 Mar 2013 21:37:38 GMT</pubDate></item></channel></rss>