<?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[DND status indication]]></title><description><![CDATA[<p dir="auto">System:<br />
Centos 5 (AsteriskNow)<br />
Asterisk 1.6.2.17.2<br />
FreePBX 2.8.1.4<br />
FOP2 2.20</p>
<p dir="auto">Hello,</p>
<p dir="auto">so far my FOP2 installation is running fine. Login and call status is indicated without any big trouble. Unfortunately the Do not Disturb status of the users does not reach the FOP. What I checked so far:</p>
<p dir="auto">Manager permissions:</p>
<blockquote>
<p dir="auto">read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate<br />
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate</p>
</blockquote>
<p dir="auto">extensions_override_freepbx.conf in /etc/asterisk (from FOP 2.20, no changes made):</p>
<pre><code>[app-dnd-on]
include =&gt; app-dnd-on-custom
exten =&gt; *78,1,Answer
exten =&gt; *78,n,Wait(1)
exten =&gt; *78,n,Macro(user-callerid,)
; added for fop2
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)
exten =&gt; *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
exten =&gt; *78,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
; end fop2 addition
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)
exten =&gt; *78,n,Set(STATE=BUSY)
exten =&gt; *78,n,Gosub(app-dnd-on,sstate,1)
exten =&gt; *78,n,Playback(do-not-disturb&amp;activated)
exten =&gt; *78,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()

[app-dnd-off]
include =&gt; app-dnd-off-custom
exten =&gt; *79,1,Answer
exten =&gt; *79,n,Wait(1)
exten =&gt; *79,n,Macro(user-callerid,)
; added for fop2
exten =&gt; *79,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *79,n,dbDel(fop2state/${CHAN})
exten =&gt; *79,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
; end fop2 addition
exten =&gt; *79,n,dbDel(DND/${AMPUSER})
exten =&gt; *79,n,Set(STATE=NOT_INUSE)
exten =&gt; *79,n,Gosub(app-dnd-off,sstate,1)
exten =&gt; *79,n,Playback(do-not-disturb&amp;de-activated)
exten =&gt; *79,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()

[app-dnd-toggle]
include =&gt; app-dnd-toggle-custom
exten =&gt; *76,1,Answer
exten =&gt; *76,n,Wait(1)
exten =&gt; *76,n,Macro(user-callerid,)
exten =&gt; *76,n,GotoIf($["${DB(DND/${AMPUSER})}" = ""]?activate:deactivate)
exten =&gt; *76,n(activate),Set(DB(DND/${AMPUSER})=YES)
exten =&gt; *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *76,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
exten =&gt; *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
exten =&gt; *76,n,Set(STATE=BUSY)
exten =&gt; *76,n,Gosub(app-dnd-toggle,sstate,1)
exten =&gt; *76,n,Playback(do-not-disturb&amp;activated)
exten =&gt; *76,n,Macro(hangupcall,)
exten =&gt; *76,n(deactivate),dbDel(DND/${AMPUSER})
exten =&gt; *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *76,n,dbDel(fop2state/${CHAN})
exten =&gt; *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
exten =&gt; *76,n,Set(STATE=NOT_INUSE)
exten =&gt; *76,n,Gosub(app-dnd-toggle,sstate,1)
exten =&gt; *76,n,Playback(do-not-disturb&amp;de-activated)
exten =&gt; *76,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()

[app-cf-off]
include =&gt; app-cf-off-custom
exten =&gt; *73,1,Answer
exten =&gt; *73,n,Wait(1)
exten =&gt; *73,n,Macro(user-callerid,)
exten =&gt; *73,n,dbDel(CF/${AMPUSER})
exten =&gt; *73,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *73,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )
exten =&gt; *73,n,Playback(call-fwd-unconditional&amp;de-activated)
exten =&gt; *73,n,Macro(hangupcall,)
exten =&gt; _*73.,1,Answer
exten =&gt; _*73.,n,Wait(1)
exten =&gt; _*73.,n,Set(fromext=${EXTEN:3})
exten =&gt; _*73.,n,dbDel(CF/${fromext})
exten =&gt; _*73.,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
exten =&gt; _*73.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: )
exten =&gt; _*73.,n,Playback(call-fwd-unconditional&amp;for&amp;extension)
exten =&gt; _*73.,n,SayDigits(${fromext})
exten =&gt; _*73.,n,Playback(cancelled)
exten =&gt; _*73.,n,Macro(hangupcall,)

[app-cf-on]
include =&gt; app-cf-on-custom
exten =&gt; *72,1,Answer
exten =&gt; *72,n,Wait(1)
exten =&gt; *72,n,Macro(user-callerid,)
exten =&gt; *72,n,Playback(call-fwd-unconditional)
exten =&gt; *72,n,Playback(please-enter-your&amp;extension)
exten =&gt; *72,n,Read(fromext,then-press-pound,,,,)
exten =&gt; *72,n,Set(fromext=${IF($["foo${fromext}"="foo"]?${AMPUSER}:${fromext})})
exten =&gt; *72,n,Wait(1)
exten =&gt; *72,n(startread),Playback(ent-target-attendant)
exten =&gt; *72,n,Read(toext,then-press-pound,,,,)
exten =&gt; *72,n,GotoIf($["foo${toext}"="foo"]?startread)
exten =&gt; *72,n,Wait(1)
exten =&gt; *72,n,Set(DB(CF/${fromext})=${toext})
exten =&gt; *72,n,Set(CHAN=${DB(DEVICE/${fromext}/dial)})
exten =&gt; *72,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: ${toext} )
exten =&gt; *72,n,Playback(call-fwd-unconditional&amp;for&amp;extension)
exten =&gt; *72,n,SayDigits(${fromext})
exten =&gt; *72,n,Playback(is-set-to)
exten =&gt; *72,n,SayDigits(${toext})
exten =&gt; *72,n,Macro(hangupcall,)
exten =&gt; _*72.,1,Answer
exten =&gt; _*72.,n,Wait(1)
exten =&gt; _*72.,n,Macro(user-callerid,)
exten =&gt; _*72.,n,Set(DB(CF/${AMPUSER})=${EXTEN:3})
exten =&gt; _*72.,n,Set(CHAN=${DB(DEVICE/${AMPUSER}/dial)})
exten =&gt; _*72.,n,UserEvent(FOP2CUST,Family: astdbcust,Channel: ${CHAN},Value: ${EXTEN:3} )
exten =&gt; _*72.,n,Playback(call-fwd-unconditional&amp;for&amp;extension)
exten =&gt; _*72.,n,SayDigits(${AMPUSER})
exten =&gt; _*72.,n,Playback(is-set-to)
exten =&gt; _*72.,n,SayDigits(${EXTEN:3})
exten =&gt; _*72.,n,Macro(hangupcall,)

[fop2-park]
exten =&gt; _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)}\,${CUT(EXTEN,:,2)})
exten =&gt; _X.,n,ParkAndAnnounce(PARKED,,Console/dsp,${RETURN_CONTEXT},${RETURN_EXTENSION},1)
exten =&gt; _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)
exten =&gt; _X.,n,Hangup

[fop2-dummy]
exten =&gt; dummy,1,Answer
exten =&gt; dummy,2,Wait(1)
exten =&gt; dummy,3,Hangup

;[fop2-park]
; Alternative fop2-park for asterisk 1.6 and up, using parkinglots and Park application
;exten =&gt; _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)},${CUT(EXTEN,:,2)})
;exten =&gt; _X.,n,Set(PARKINGLOT=parkinglot_${RETURN_CONTEXT})
;exten =&gt; _X.,n,Park(,${RETURN_CONTEXT},${RETURN_EXTENSION},1,s)

</code></pre>
<p dir="auto">log during DND dial via *78 my phone is <strong>1007</strong> my user exten is <strong>9666</strong></p>
<pre><code>
127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: MACRO_DEPTH
127.0.0.1       &lt;- Value: 1
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?skipblkvm
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: MACRO_DEPTH
127.0.0.1       &lt;- Value: 1
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?theend
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: MACRO_DEPTH
127.0.0.1       &lt;- Value: 1
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 9
127.0.0.1       &lt;- Application: Hangup
127.0.0.1       &lt;- AppData:
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: MACRO_DEPTH
127.0.0.1       &lt;- Value: 0
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: RTPAUDIOQOS
127.0.0.1       &lt;- Value: ssrc=164155281;themssrc=1923237859;lp=0;rxjitter=0.000215;rxcount=152;txjitter=0.000000;txcount=179;rlp=0;rtt=0.000000
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: RTPAUDIOQOSJITTER
127.0.0.1       &lt;- Value: minrxjitter=0.000001;maxrxjitter=0.009601;avgrxjitter=0.001482;stdevrxjitter=16831570662546681178158623672130372778864813544777170415896070931141270497851246435101681526382304928610904811525591468605440.000000;reported_minjitter=0.000000;reported_maxjitte
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: RTPAUDIOQOSLOSS
127.0.0.1       &lt;- Value: lost=0;expected=152;
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: RTPAUDIOQOSRTT
127.0.0.1       &lt;- Value: minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Variable: RTPAUDIOQOS
127.0.0.1       &lt;- Value:
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Hangup
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-00003937
127.0.0.1       &lt;- Uniqueid: 1305630186.72219
127.0.0.1       &lt;- CallerIDNum: 9666
127.0.0.1       &lt;- CallerIDName: Simon
127.0.0.1       &lt;- Cause: 16
127.0.0.1       &lt;- Cause-txt: Normal Clearing
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: ExtensionStatus
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Exten: 9666
127.0.0.1       &lt;- Context: ext-local
127.0.0.1       &lt;- Hint: SIP/1007&amp;Custom:DND9666
127.0.0.1       &lt;- Status: 0
127.0.0.1       &lt;- Server: 0
</code></pre>
<p dir="auto">what else can I check to make this working?<br />
btw. while reading I also found that some have trouble with the Pause/Unpause status not getting updated. I seem to have that too, but it's a feature we didn't use so far.</p>
<p dir="auto">Thanks in advance<br />
Simon</p>
]]></description><link>http://localhost:4567/topic/756/dnd-status-indication</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 09:27:03 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/756.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 May 2011 12:21:04 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DND status indication on Thu, 12 Apr 2012 19:47:28 GMT]]></title><description><![CDATA[<p dir="auto">that's bad luck, indeed.<br />
Thanks for the offer. I need to await the VPN access to be available to set up the troubleshooting session.</p>
]]></description><link>http://localhost:4567/post/3366</link><guid isPermaLink="true">http://localhost:4567/post/3366</guid><dc:creator><![CDATA[MeLikesVoIP]]></dc:creator><pubDate>Thu, 12 Apr 2012 19:47:28 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 11 Apr 2012 19:59:16 GMT]]></title><description><![CDATA[<p dir="auto">As I said before, the changes in the macros are kind of agnostic on device, as they use the extension number/amp user number. In any case, I will have to look at your server while you set yourself in dnd and trace that, if you catch me on the live help we can arrange a reverse ssh session or something.</p>
<p dir="auto">We were having really bad luck lately: several strong storms took down our network, power and hardware twice in a little over a month, so lately I am not much on the live help but trying to fix our network.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/3365</link><guid isPermaLink="true">http://localhost:4567/post/3365</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 11 Apr 2012 19:59:16 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 11 Apr 2012 06:10:17 GMT]]></title><description><![CDATA[<p dir="auto">Yes, using -w.</p>
<p dir="auto">Like I described I saw that it made adjustments that did not reflect Device and User mode, so I adjusted the lines according to your suggestions in this thread on the forum (hence why I posted here instead of starting a new thread).</p>
]]></description><link>http://localhost:4567/post/3364</link><guid isPermaLink="true">http://localhost:4567/post/3364</guid><dc:creator><![CDATA[MeLikesVoIP]]></dc:creator><pubDate>Wed, 11 Apr 2012 06:10:17 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Tue, 10 Apr 2012 22:58:09 GMT]]></title><description><![CDATA[<p dir="auto">Did you run?</p>
<p dir="auto">/usr/local/fop2/generate_override_contexts.pl -w</p>
<p dir="auto">You must do that in order to fix the freepbx macros and include the special fop2 tidbits.</p>
]]></description><link>http://localhost:4567/post/3363</link><guid isPermaLink="true">http://localhost:4567/post/3363</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 10 Apr 2012 22:58:09 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Tue, 10 Apr 2012 19:41:00 GMT]]></title><description><![CDATA[<p dir="auto">The phone soft keys are configured to dial the asterisk feature code for DND (which defaults to *78 for this particular installation), and the DND status shows up correctly when I look at the database DND keys. With the previous version, dialing the feature code would set DND in the database correctly and signal FOP2, but with the latest release I only see the database entries change but not the status in FOP2...</p>
]]></description><link>http://localhost:4567/post/3362</link><guid isPermaLink="true">http://localhost:4567/post/3362</guid><dc:creator><![CDATA[MeLikesVoIP]]></dc:creator><pubDate>Tue, 10 Apr 2012 19:41:00 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Sat, 07 Apr 2012 15:46:14 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Hi,</p>
<p dir="auto">I upgraded (licensed version) from 2.11 to 2.26. Great that you provided the /usr/local/fop2/generate_override_contexts.pl script to adjust freepbx number plans (running trixbox 2.8)!</p>
<p dir="auto">It seems that the script makes adjustments that are not in line with those necessary for Device&amp;User mode. So I followed the steps in this thread again, like I did when I installed 2.11.</p>
<p dir="auto">However, only those extensions cashed in the database with keys SIP/&lt;ext&gt; are shown as DND, others are not updated.<br />
DND status updates work by setting status through FOP2 (FOP2 server is running OK), and ringing/call/queue status is showed correctly as well (manager connection and flash-FOP2 connection OK as well).</p>
<p dir="auto">To be sure I followed the steps in <a href="http://www.fop2.com/documentation-configuration-server.php" rel="nofollow ugc">http://www.fop2.com/documentation-confi ... server.php</a> another time, but still no luck. Any help would be appreciated</p>
</blockquote>
<p dir="auto">The modifications to the standard macros from FreePBX are kind of agnostics, the DND key is just the extension number:</p>
<p dir="auto">DND/xxxxx</p>
<p dir="auto">not sure where you see the SIP/xxx key. In any case, the question is: how are you setting phones in dnd? The override contexts are for making the fop2 presence state react to the DND/xxx changes in FreePBX, in both directions. So if you dial the dnd feature codes from freepbx, it should signal the presence change in fop2, and viceversa (you change in fop2, it will set the dnd/xxxx astdb entry).</p>
<p dir="auto">If you use your phone dnd button it will not work as it does not signal asterisk at all. So, what astdb entry is set if you change presence in FOP2? What is exactly the problem? You do not see dnd states in fop2 for extensions that were set to dnd via *78 feature code in freepbx?</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/3361</link><guid isPermaLink="true">http://localhost:4567/post/3361</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sat, 07 Apr 2012 15:46:14 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Fri, 06 Apr 2012 19:34:31 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Don't want to hijack but don't want to start another thread if not necessary as well.</p>
<p dir="auto">I upgraded (licensed version) from 2.11 to 2.26. Great that you provided the /usr/local/fop2/generate_override_contexts.pl script to adjust freepbx number plans (running trixbox 2.8)!</p>
<p dir="auto">It seems that the script makes adjustments that are not in line with those necessary for Device&amp;User mode. So I followed the steps in this thread again, like I did when I installed 2.11.</p>
<p dir="auto">However, only those extensions cashed in the database with keys SIP/&lt;ext&gt; are shown as DND, others are not updated.<br />
DND status updates work by setting status through FOP2 (FOP2 server is running OK), and ringing/call/queue status is showed correctly as well (manager connection and flash-FOP2 connection OK as well).</p>
<p dir="auto">To be sure I followed the steps in <a href="http://www.fop2.com/documentation-configuration-server.php" rel="nofollow ugc">http://www.fop2.com/documentation-confi ... server.php</a> another time, but still no luck. Any help would be appreciated</p>
]]></description><link>http://localhost:4567/post/3360</link><guid isPermaLink="true">http://localhost:4567/post/3360</guid><dc:creator><![CDATA[MeLikesVoIP]]></dc:creator><pubDate>Fri, 06 Apr 2012 19:34:31 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Thu, 19 May 2011 06:56:22 GMT]]></title><description><![CDATA[<p dir="auto">you are genius, thanks a lot!</p>
<p dir="auto">I did the changes in the dnd macros and it works excellent!<br />
As I see for call forwarding similar changes need to be done.</p>
<pre><code>[app-dnd-on]
include =&gt; app-dnd-on-custom
exten =&gt; *78,1,Answer
exten =&gt; *78,n,Wait(1)
exten =&gt; *78,n,Macro(user-callerid,)
; added for fop2
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)
; next line deactivated and changed for device and user mode 
; exten =&gt; *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *78,n,Set(CHAN=USER/${AMPUSER})
exten =&gt; *78,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
exten =&gt; *78,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
; end fop2 addition
exten =&gt; *78,n,Set(DB(DND/${AMPUSER})=YES)
exten =&gt; *78,n,Set(STATE=BUSY)
exten =&gt; *78,n,Gosub(app-dnd-on,sstate,1)
exten =&gt; *78,n,Playback(do-not-disturb&amp;activated)
exten =&gt; *78,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()

[app-dnd-off]
include =&gt; app-dnd-off-custom
exten =&gt; *79,1,Answer
exten =&gt; *79,n,Wait(1)
exten =&gt; *79,n,Macro(user-callerid,)
; added for fop2
; next line deactivated and changed for device and user mode 
;exten =&gt; *79,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *79,n,Set(CHAN=USER/${AMPUSER})
exten =&gt; *79,n,dbDel(fop2state/${CHAN})
exten =&gt; *79,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
; end fop2 addition
exten =&gt; *79,n,dbDel(DND/${AMPUSER})
exten =&gt; *79,n,Set(STATE=NOT_INUSE)
exten =&gt; *79,n,Gosub(app-dnd-off,sstate,1)
exten =&gt; *79,n,Playback(do-not-disturb&amp;de-activated)
exten =&gt; *79,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()

[app-dnd-toggle]
include =&gt; app-dnd-toggle-custom
exten =&gt; *76,1,Answer
exten =&gt; *76,n,Wait(1)
exten =&gt; *76,n,Macro(user-callerid,)
exten =&gt; *76,n,GotoIf($["${DB(DND/${AMPUSER})}" = ""]?activate:deactivate)
exten =&gt; *76,n(activate),Set(DB(DND/${AMPUSER})=YES)
; next line deactivated and changed for device and user mode 
;exten =&gt; *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *76,n,Set(CHAN=USER/${AMPUSER})
exten =&gt; *76,n,Set(DB(fop2state/${CHAN})=Do not Disturb)
exten =&gt; *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: Do not Disturb)
exten =&gt; *76,n,Set(STATE=BUSY)
exten =&gt; *76,n,Gosub(app-dnd-toggle,sstate,1)
exten =&gt; *76,n,Playback(do-not-disturb&amp;activated)
exten =&gt; *76,n,Macro(hangupcall,)
exten =&gt; *76,n(deactivate),dbDel(DND/${AMPUSER})
; next line deactivated and changed for device and user mode 
; exten =&gt; *76,n,Set(CHAN=${CUT(CHANNEL,-,1)})
exten =&gt; *76,n,Set(CHAN=USER/${AMPUSER})
exten =&gt; *76,n,dbDel(fop2state/${CHAN})
exten =&gt; *76,n,UserEvent(FOP2ASTDB,Family: fop2state,Channel: ${CHAN},Value: )
exten =&gt; *76,n,Set(STATE=NOT_INUSE)
exten =&gt; *76,n,Gosub(app-dnd-toggle,sstate,1)
exten =&gt; *76,n,Playback(do-not-disturb&amp;de-activated)
exten =&gt; *76,n,Macro(hangupcall,)
exten =&gt; sstate,1,Set(DEVSTATE(Custom:DND${AMPUSER})=${STATE})
exten =&gt; sstate,n,Set(DEVICES=${DB(AMPUSER/${AMPUSER}/device)})
exten =&gt; sstate,n,GotoIf($["${DEVICES}" = "" ]?return)
exten =&gt; sstate,n,Set(LOOPCNT=${FIELDQTY(DEVICES,&amp;)})
exten =&gt; sstate,n,Set(ITER=1)
exten =&gt; sstate,n(begin),Set(DEVSTATE(Custom:DEVDND${CUT(DEVICES,&amp;,${ITER})})=${STATE})
exten =&gt; sstate,n,Set(ITER=$[${ITER} + 1])
exten =&gt; sstate,n,GotoIf($[${ITER} &lt;= ${LOOPCNT}]?begin)
exten =&gt; sstate,n(return),Return()
</code></pre>
<p dir="auto">you just won a new customer!</p>
]]></description><link>http://localhost:4567/post/3359</link><guid isPermaLink="true">http://localhost:4567/post/3359</guid><dc:creator><![CDATA[siax]]></dc:creator><pubDate>Thu, 19 May 2011 06:56:22 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 17:48:46 GMT]]></title><description><![CDATA[<p dir="auto">This seems to make sense. I will try it out and give feedback tomorrow.</p>
<p dir="auto">Thanks again!</p>
]]></description><link>http://localhost:4567/post/3358</link><guid isPermaLink="true">http://localhost:4567/post/3358</guid><dc:creator><![CDATA[siax]]></dc:creator><pubDate>Wed, 18 May 2011 17:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 17:42:56 GMT]]></title><description><![CDATA[<p dir="auto">Perhaps the problem is fixed by modifying the macros a little bit, as right now is storing state as</p>
<p dir="auto">SIP/1007</p>
<p dir="auto">and because user&amp;device mode fop2 will look for</p>
<p dir="auto">USER/1007</p>
<p dir="auto">instead...</p>
<p dir="auto">I have not tried this, just writing it here, try changing the line:</p>
<pre><code>exten =&gt; *78,n,Set(CHAN=${CUT(CHANNEL,-,1)})
</code></pre>
<p dir="auto">to</p>
<pre><code>exten =&gt; *78,n,Set(CHAN=USER/${AMPUSER})
</code></pre>
<p dir="auto">If it works, you should do a similar change in all the related macros in extensions_override_freepbx.conf</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/3357</link><guid isPermaLink="true">http://localhost:4567/post/3357</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 May 2011 17:42:56 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 17:17:17 GMT]]></title><description><![CDATA[<p dir="auto">yes I use the automatic FreePBX configuration and yes I use device and user mode</p>
<p dir="auto">thanks for your help!</p>
]]></description><link>http://localhost:4567/post/3356</link><guid isPermaLink="true">http://localhost:4567/post/3356</guid><dc:creator><![CDATA[siax]]></dc:creator><pubDate>Wed, 18 May 2011 17:17:17 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 16:55:36 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">The permissions is for the user that you set in fop2.cfg. The events look fine and permissions too, you had the two actions that are being injected for fop2 (setting an astdb entry and fire a userevent).</p>
<p dir="auto">With this events, DND should be reflected in the fop2 display. Are you using the automatic freepbx configuration? Are you using device&amp;user mode in FreePBX?</p>
]]></description><link>http://localhost:4567/post/3355</link><guid isPermaLink="true">http://localhost:4567/post/3355</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 May 2011 16:55:36 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 12:45:46 GMT]]></title><description><![CDATA[<p dir="auto">btw. I did a manager reload and no amportal restart/ core restart but this should no matter I guess (?)</p>
<p dir="auto">are we talking about the manager "admin" account? this is where I set the permissions and it's the one entered in fop2.conf</p>
]]></description><link>http://localhost:4567/post/3354</link><guid isPermaLink="true">http://localhost:4567/post/3354</guid><dc:creator><![CDATA[siax]]></dc:creator><pubDate>Wed, 18 May 2011 12:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 12:39:30 GMT]]></title><description><![CDATA[<p dir="auto">Hello Nicolas,</p>
<p dir="auto">thanks for your reply. Unfortunately this does not do the trick. There are quite many calls already running, so I obviously didn't extract the right informartion. here's for you all newchannel and and newexten and everything else I though which might be useful</p>
<pre><code>127.0.0.1       &lt;- Event: Newchannel
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- ChannelState: 0
127.0.0.1       &lt;- ChannelStateDesc: Down
127.0.0.1       &lt;- CallerIDNum: 1007
127.0.0.1       &lt;- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
127.0.0.1       &lt;- AccountCode: 
127.0.0.1       &lt;- Exten: *78
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: ChannelUpdate
127.0.0.1       &lt;- Privilege: system,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Channeltype: SIP
127.0.0.1       &lt;- SIPcallid: 24f1ee7c692d1af5
127.0.0.1       &lt;- SIPfullcontact: sip:1007@10.0.1.101:5060;transport=udp
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newstate
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- ChannelState: 4
127.0.0.1       &lt;- ChannelStateDesc: Ring
127.0.0.1       &lt;- CallerIDNum: 1007
127.0.0.1       &lt;- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: ExtensionStatus
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Exten: 9666
127.0.0.1       &lt;- Context: ext-local
127.0.0.1       &lt;- Hint: SIP/1007&amp;Custom:DND9666
127.0.0.1       &lt;- Status: 1
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 1
127.0.0.1       &lt;- Application: Answer
127.0.0.1       &lt;- AppData: 
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newstate
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- ChannelState: 6
127.0.0.1       &lt;- ChannelStateDesc: Up
127.0.0.1       &lt;- CallerIDNum: 1007
127.0.0.1       &lt;- CallerIDName: IETSIPTELCGN007 (Aastra 6757i)
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 2
127.0.0.1       &lt;- Application: Wait
127.0.0.1       &lt;- AppData: 1
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 3
127.0.0.1       &lt;- Application: Macro
127.0.0.1       &lt;- AppData: user-callerid,
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 1
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: AMPUSER=1007
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 2
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 0?report
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 3
127.0.0.1       &lt;- Application: ExecIf
127.0.0.1       &lt;- AppData: 1?Set(REALCALLERIDNUM=1007)
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: AMPUSER=9666
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 5
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: AMPUSERCIDNAME=Simon
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 6
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 0?report
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: AMPUSERCID=9666
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 8
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: CALLERID(all)="Simon" &lt;9666&gt;
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 10
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 0?continue
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 11
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: __TTL=64
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 12
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?continue
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 19
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: CALLERID(number)=9666
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: NewCallerid
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- CallerIDNum: 9666
127.0.0.1       &lt;- CallerIDName: Simon
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 20
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: CALLERID(name)=Simon
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: NewCallerid
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- CallerIDNum: 9666
127.0.0.1       &lt;- CallerIDName: Simon
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-user-callerid
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 21
127.0.0.1       &lt;- Application: NoOp
127.0.0.1       &lt;- AppData: Using CallerID "Simon" &lt;9666&gt;
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DB(DND/9666)=YES
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 5
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: CHAN=SIP/1007
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 6
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DB(fop2state/SIP/1007)=Do not Disturb
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: UserEvent
127.0.0.1       &lt;- AppData: FOP2ASTDB,Family: fop2state,Channel: SIP/1007,Value: Do not Disturb
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- UserEvent: FOP2ASTDB
127.0.0.1       &lt;- Family: fop2state
127.0.0.1       &lt;- Channel: SIP/1007
127.0.0.1       &lt;- Value: Do not Disturb
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 8
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DB(DND/9666)=YES
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 9
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: STATE=BUSY
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 10
127.0.0.1       &lt;- Application: Gosub
127.0.0.1       &lt;- AppData: app-dnd-on,sstate,1
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 1
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DEVSTATE(Custom:DND9666)=BUSY
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 2
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DEVICES=1007
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 3
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 0?return
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: LOOPCNT=1
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 5
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: ITER=1
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 6
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: DEVSTATE(Custom:DEVDND1007)=BUSY
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: Set
127.0.0.1       &lt;- AppData: ITER=2
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 8
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 0?begin
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: app-dnd-on
127.0.0.1       &lt;- Extension: sstate
127.0.0.1       &lt;- Priority: 9
127.0.0.1       &lt;- Application: Return
127.0.0.1       &lt;- AppData: 
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 11
127.0.0.1       &lt;- Application: Playback
127.0.0.1       &lt;- AppData: do-not-disturb&amp;activated
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: *78
127.0.0.1       &lt;- Priority: 12
127.0.0.1       &lt;- Application: Macro
127.0.0.1       &lt;- AppData: hangupcall,
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?skipblkvm
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?theend
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 9
127.0.0.1       &lt;- Application: Hangup
127.0.0.1       &lt;- AppData: 
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: from-internal
127.0.0.1       &lt;- Extension: h
127.0.0.1       &lt;- Priority: 1
127.0.0.1       &lt;- Application: Macro
127.0.0.1       &lt;- AppData: hangupcall
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 1
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?skiprg
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 4
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?skipblkvm
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 7
127.0.0.1       &lt;- Application: GotoIf
127.0.0.1       &lt;- AppData: 1?theend
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0


127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- Channel: SIP/1007-0000619b
127.0.0.1       &lt;- Context: macro-hangupcall
127.0.0.1       &lt;- Extension: s
127.0.0.1       &lt;- Priority: 9
127.0.0.1       &lt;- Application: Hangup
127.0.0.1       &lt;- AppData: 
127.0.0.1       &lt;- Uniqueid: 1305721003.106490
127.0.0.1       &lt;- Server: 0

127.0.0.1       &lt;- Event: ExtensionStatus
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- Exten: 9666
127.0.0.1       &lt;- Context: ext-local
127.0.0.1       &lt;- Hint: SIP/1007&amp;Custom:DND9666
127.0.0.1       &lt;- Status: 0
127.0.0.1       &lt;- Server: 0

</code></pre>
<p dir="auto">Cheers,<br />
Simon</p>
]]></description><link>http://localhost:4567/post/3353</link><guid isPermaLink="true">http://localhost:4567/post/3353</guid><dc:creator><![CDATA[siax]]></dc:creator><pubDate>Wed, 18 May 2011 12:39:30 GMT</pubDate></item><item><title><![CDATA[Reply to DND status indication on Wed, 18 May 2011 12:07:40 GMT]]></title><description><![CDATA[<p dir="auto">Hi Simon,</p>
<p dir="auto">Unfortunately your manager capture does not have relevant information to tracking the problem down (all the varsets are just noise, the meat is on the newchannel and newexten events that come before , the ones traversing your app-dnd macros).</p>
<p dir="auto">You can do a quick test by adding ",all" at the end of both read and write in /etc/asterisk/manager.conf (in some asterisk implementations user events are not being sent even if you have the user permission set).</p>
<pre><code>read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,all
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,all
</code></pre>
<p dir="auto">Perhaps it is not a dialplan/context issue but just a manager permission thing.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/3352</link><guid isPermaLink="true">http://localhost:4567/post/3352</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 18 May 2011 12:07:40 GMT</pubDate></item></channel></rss>