<?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[FreePBX Presence Refresh Issues]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have set up a new Trixbox 2.8.0.4 server which is upgraded to run FreePBX 2.10.1.2.  The problem is that when I set DND, either through FOP, ARI, or the phone, I need to manually refresh the FOP page (F5) before it will update the user's button with the DND status.  All the other custom presences in FOP have the same issue; you can set these statuses, but need to manually refresh the page before they show up.</p>
<p dir="auto">I have run generate_override_contexts.pl -w and have confirmed the proper database values are being set in and out of FOP.  I have also confirmed that when setting DND outside of FOP the proper user events are being sent in the asterisk logs.</p>
<p dir="auto">All other call events are showing up properly in FOP, so this appears to be strictly related to the visual refresh of the presence display on the user button.</p>
<p dir="auto">Any assistance would be appreciated, because as far as I can tell from logs, etc, this should be working.</p>
<p dir="auto">Thanks,</p>
]]></description><link>http://localhost:4567/topic/1252/freepbx-presence-refresh-issues</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 10:41:41 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1252.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Sep 2012 23:36:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FreePBX Presence Refresh Issues on Tue, 16 Oct 2012 11:41:05 GMT]]></title><description><![CDATA[<p dir="auto">The asterisk version that comes with Trixbox has a bug where the UserEvent includes a Channel header that it should not be there. FOP2 then receives the userevent (the one that notifies about a state change) with mixed and incorrect channels. You have to patch Asterisk 1.6-phonecore or upgrade it to 1.8. It is an asterisk bug.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/5618</link><guid isPermaLink="true">http://localhost:4567/post/5618</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 16 Oct 2012 11:41:05 GMT</pubDate></item><item><title><![CDATA[Reply to FreePBX Presence Refresh Issues on Tue, 16 Oct 2012 04:25:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Sorry, I somehow missed the response to this post.</p>
<p dir="auto">I have set the read/write to "all" and it doesn't help.  I have also tried "all,hud" for kicks and it didn't work either.  To confirm I checked the user rights directly in CLI and see:</p>
<pre><code>username: admin
         secret: &lt;Set&gt;
            acl: no
      read perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,hud,all
     write perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,hud,all
displayconnects: no
</code></pre>
<p dir="auto">And actually, after further studying the issue, I have to restart the FOP2 service, not just refresh the page, to get it to update the status when I set DND via phone or ARI.</p>
<p dir="auto">In CLI logs, the following user event is getting  set:</p>
<pre><code>UserEvent("SIP/ext-xxxxxxx", "FOP2ASTDB,Family: fop2state,Channel: SIP/ext,Value: Do not Disturb")
</code></pre>
<p dir="auto">Which after scanning through the FOP2 freePBX overrides is correct and I have verified that it is following the overide commands and not the native FreePBX ones.</p>
<p dir="auto">Finally, I checked the FOP2 logging (verbosity 511) as best as I could given how verbose it is, and I get the following when I set DND:</p>
<pre><code>127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3337
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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/9998)=YES
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: hud,all
127.0.0.1       &lt;- SequenceNumber: 3338
127.0.0.1       &lt;- File: db.c
127.0.0.1       &lt;- Line: 146
127.0.0.1       &lt;- Func: ast_db_put
127.0.0.1       &lt;- UserEvent: DBPut
127.0.0.1       &lt;- Family: DND
127.0.0.1       &lt;- Key: 9998
127.0.0.1       &lt;- Value: YES
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

Not a reference at all
Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3339
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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/9998
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3340
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: CHAN
127.0.0.1       &lt;- Value: SIP/9998
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3341
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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/9998)=Do not Disturb
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: hud,all
127.0.0.1       &lt;- SequenceNumber: 3342
127.0.0.1       &lt;- File: db.c
127.0.0.1       &lt;- Line: 146
127.0.0.1       &lt;- Func: ast_db_put
127.0.0.1       &lt;- UserEvent: DBPut
127.0.0.1       &lt;- Family: fop2state
127.0.0.1       &lt;- Key: SIP/9998
127.0.0.1       &lt;- Value: Do not Disturb
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

Not a reference at all
Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3343
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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/9998,Value: Do not Disturb
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: user,all
127.0.0.1       &lt;- SequenceNumber: 3344
127.0.0.1       &lt;- File: app_userevent.c
127.0.0.1       &lt;- Line: 79
127.0.0.1       &lt;- Func: userevent_exec
127.0.0.1       &lt;- UserEvent: FOP2ASTDB
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Family: fop2state
127.0.0.1       &lt;- Channel: SIP/9998
127.0.0.1       &lt;- Value: Do not Disturb
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

GET CHANNEL input (ARRAY(0xf136770)) - output (ARRAY(0xf136770))

Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3345
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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/9998)=YES
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: hud,all
127.0.0.1       &lt;- SequenceNumber: 3346
127.0.0.1       &lt;- File: db.c
127.0.0.1       &lt;- Line: 146
127.0.0.1       &lt;- Func: ast_db_put
127.0.0.1       &lt;- UserEvent: DBPut
127.0.0.1       &lt;- Family: DND
127.0.0.1       &lt;- Key: 9998
127.0.0.1       &lt;- Value: YES
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

Not a reference at all
Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3347
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3348
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: STATE
127.0.0.1       &lt;- Value: BUSY
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3349
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3350
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: DEVICE_STATE(Custom:DND9998)=BUSY
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

It's blessed into class Extension

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: hud,all
127.0.0.1       &lt;- SequenceNumber: 3351
127.0.0.1       &lt;- File: db.c
127.0.0.1       &lt;- Line: 146
127.0.0.1       &lt;- Func: ast_db_put
127.0.0.1       &lt;- UserEvent: DBPut
127.0.0.1       &lt;- Family: CustomDevstate
127.0.0.1       &lt;- Key: DND9998
127.0.0.1       &lt;- Value: BUSY
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

Not a reference at all
Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3352
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: DB_RESULT
127.0.0.1       &lt;- Value: 9998
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3353
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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=9998
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3354
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: DEVICES
127.0.0.1       &lt;- Value: 9998
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: ExtensionStatus
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- SequenceNumber: 3355
127.0.0.1       &lt;- File: manager.c
127.0.0.1       &lt;- Line: 3381
127.0.0.1       &lt;- Func: manager_state_cb
127.0.0.1       &lt;- Exten: 9998
127.0.0.1       &lt;- Context: ext-local
127.0.0.1       &lt;- Hint: SIP/9998&amp;Custom:DND9998
127.0.0.1       &lt;- Status: 2
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: ExtensionStatus)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE EXTENSIONSTATUS 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3356
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3357
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3358
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: LOOPCNT
127.0.0.1       &lt;- Value: 1
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3359
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3360
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: ITER
127.0.0.1       &lt;- Value: 1
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3361
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: DEVICE_STATE(Custom:DEVDND9998)=BUSY
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: UserEvent
127.0.0.1       &lt;- Privilege: hud,all
127.0.0.1       &lt;- SequenceNumber: 3362
127.0.0.1       &lt;- File: db.c
127.0.0.1       &lt;- Line: 146
127.0.0.1       &lt;- Func: ast_db_put
127.0.0.1       &lt;- UserEvent: DBPut
127.0.0.1       &lt;- Family: CustomDevstate
127.0.0.1       &lt;- Key: DEVDND9998
127.0.0.1       &lt;- Value: BUSY
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: UserEvent)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE USEREVENT 0

Not a reference at all
Not a reference at all

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3363
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3364
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: ITER
127.0.0.1       &lt;- Value: 2
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: ExtensionStatus
127.0.0.1       &lt;- Privilege: call,all
127.0.0.1       &lt;- SequenceNumber: 3365
127.0.0.1       &lt;- File: manager.c
127.0.0.1       &lt;- Line: 3381
127.0.0.1       &lt;- Func: manager_state_cb
127.0.0.1       &lt;- Exten: *769998
127.0.0.1       &lt;- Context: ext-dnd-hints
127.0.0.1       &lt;- Hint: Custom:DEVDND9998
127.0.0.1       &lt;- Status: 2
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: ExtensionStatus)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE EXTENSIONSTATUS 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3366
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3367
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: Newexten)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE NEWEXTEN 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: VarSet
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3368
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 8186
127.0.0.1       &lt;- Func: pbx_builtin_setvar_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
127.0.0.1       &lt;- Variable: GOSUB_RETVAL
127.0.0.1       &lt;- Value:
127.0.0.1       &lt;- Uniqueid: 1350360483.735
127.0.0.1       &lt;- Server: 0

** MAIN AMI event received...
** MAIN There's an 'Event' in the event block
** MAIN Event detected block_count = 1 (Event: VarSet)
** MAIN There are 1 blocks for processing
** MAIN Answer block cleared

** DIGEST_EVENT: start

** PROCESA_BLOQUE  0
** PROCESA_BLOQUE VARSET 0

** MAIN End of block from localhost

127.0.0.1       &lt;- Event: Newexten
127.0.0.1       &lt;- Privilege: dialplan,all
127.0.0.1       &lt;- SequenceNumber: 3369
127.0.0.1       &lt;- File: pbx.c
127.0.0.1       &lt;- Line: 3144
127.0.0.1       &lt;- Func: pbx_extension_helper
127.0.0.1       &lt;- Channel: SIP/9998-00000251
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: 1350360483.735
127.0.0.1       &lt;- Server: 0
</code></pre>
<p dir="auto">It carries on for a bit before and after that, but those parts seem more with the handling of the call display on the button and don't appear to relate to DND.  Really not sure why it isn't working or why I would have to restart the FOP2 service to display presence changes via phone/ARI, but yet changes via FOP2 directly work fine.</p>
]]></description><link>http://localhost:4567/post/5617</link><guid isPermaLink="true">http://localhost:4567/post/5617</guid><dc:creator><![CDATA[TRAFSupport]]></dc:creator><pubDate>Tue, 16 Oct 2012 04:25:48 GMT</pubDate></item><item><title><![CDATA[Reply to FreePBX Presence Refresh Issues on Tue, 18 Sep 2012 01:41:45 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Trixbox has a bug where the "user" manager permission is not honored. You must edit /etc/asterisk/manager.conf and be sure you have "all" both in the read and write lines.</p>
<p dir="auto">The DND state is propagated using Asterisk Manager User Events, you can only see those in trixbox when having "hud" or "all" permissions. (this is a trixbox bug, normal asterisk is not affected).</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/5616</link><guid isPermaLink="true">http://localhost:4567/post/5616</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Tue, 18 Sep 2012 01:41:45 GMT</pubDate></item></channel></rss>