TRAFSupport

Member

Last active 11 years ago

  1. 11 years ago
    Sun Dec 2 18:02:38 2012

    Hi,

    The problem was that I hadn't configured anything. With the FreePBX FOP2 admin module, if you don't configure anything specifically for the originate channel in the buttons, what it generates is what I posted in the logs. I manually entered in the originate channel for each extension in the FreePBX admin as local/xxxx@from-internal and this resolved the issue.

    Thanks,

  2. 12 years ago
    Wed Nov 14 19:06:23 2012

    Hi There,

    As I had previously stated, I had tried that to no effect. My FOP2admin user (I'm not using the default AMI admin) currently has read/write permissions of "originate, dial, all".

    Full User info the manager.conf file:

    [fop2admin]
    secret = secret
    permit = 172.16.0.0/255.255.255.0
    read = originate, dial, all
    write = originate, dial, all
    writetimeout = 1000
    eventfilter = !Event: RTCPSent
    eventfilter = !Event: RTCPReceived
    eventfilter = !Event: VarSet
    eventfilter = !Event: Cdr
    eventfilter = !Event: ExtensionStatus
    eventfilter = !Event: ChannelUpdate

    AMI info in my fop2.cfg file is:

    manager_host=localhost
    manager_port=5038
    manager_user=fop2admin
    manager_secret=secret

    And it is definitely logging in OK with that user considering everything else works.

    I fired up logging in fop2 and this is what I get when I try to run the dial command:

    DIAL
    Action: Originate
    Channel: local
    Exten: XX
    Context: from-internal
    Priority: 1
    CallerID: TV01 Test <9998>
    Async: True
    
    
    
    127.0.0.1       -> Action: Originate
    127.0.0.1       -> Channel: local
    127.0.0.1       -> Exten: XX
    127.0.0.1       -> Context: from-internal
    127.0.0.1       -> Priority: 1
    127.0.0.1       -> CallerID: TV01 Test <9998>
    127.0.0.1       -> Async: True
    
    ** MAIN End of block from localhost
    
    127.0.0.1       <- Response: Error
    127.0.0.1       <- Message: Invalid channel
    127.0.0.1       <- Server: 0
    
    ** MAIN AMI event received...
    ** MAIN No 'Event' nor 'End'. Erasing block...
    
    Response: Error
    Message: Invalid channel
    Server: 0

    So I'm not sure what it is referring to with "Error Invalid Channel". It is the same with internal extension or external numbers.

    Thanks,

  3. Sat Nov 10 22:13:09 2012
    TRAFSupport started the conversation Dial Button and Dial Box Don't Ring Phone.

    Hi There;

    I just updated to asterisk 1.8 which resolved most of the issues I was having with FOP2, however, I can't get the dial button or the dial box to work properly. If I select another extension and press the dial button, nothing happens; it does not ring my phone to initiate the connection and no commands are sent to asterisk. This is the same if I enter a number in the dial box. The dial box does work for transferring, ie. if I'm on a call, enter a number in the dial box and hit enter, it transfers the call to that number so the problem seems to be with just originating a new call to my phone.

    I have my fop2admin AMI user setup for "all" read/write permissions and I have tried adding in "originate" and "dial" in addition to "all" to see if it makes a difference, but it doesn't.

    The FOP2 user I am using has "all" rights and all other functions seem to work properly.

    This isn't a huge deal as most of the users don't use FOP2 to operate their phones, however I would like to get this working in the event the users decide to make use of this feature.

    Thanks,

  4. Tue Oct 16 04:25:48 2012
    TRAFSupport posted in FreePBX Presence Refresh Issues.

    Hi,

    Sorry, I somehow missed the response to this post.

    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:

    username: admin
             secret: <Set>
                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

    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.

    In CLI logs, the following user event is getting set:

    UserEvent("SIP/ext-xxxxxxx", "FOP2ASTDB,Family: fop2state,Channel: SIP/ext,Value: Do not Disturb")

    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.

    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:

    127.0.0.1       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3337
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(DND/9998)=YES
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: hud,all
    127.0.0.1       <- SequenceNumber: 3338
    127.0.0.1       <- File: db.c
    127.0.0.1       <- Line: 146
    127.0.0.1       <- Func: ast_db_put
    127.0.0.1       <- UserEvent: DBPut
    127.0.0.1       <- Family: DND
    127.0.0.1       <- Key: 9998
    127.0.0.1       <- Value: YES
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3339
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: CHAN=SIP/9998
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3340
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: CHAN
    127.0.0.1       <- Value: SIP/9998
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3341
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(fop2state/SIP/9998)=Do not Disturb
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: hud,all
    127.0.0.1       <- SequenceNumber: 3342
    127.0.0.1       <- File: db.c
    127.0.0.1       <- Line: 146
    127.0.0.1       <- Func: ast_db_put
    127.0.0.1       <- UserEvent: DBPut
    127.0.0.1       <- Family: fop2state
    127.0.0.1       <- Key: SIP/9998
    127.0.0.1       <- Value: Do not Disturb
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3343
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: UserEvent
    127.0.0.1       <- AppData: FOP2ASTDB,Family: fop2state,Channel: SIP/9998,Value: Do not Disturb
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: user,all
    127.0.0.1       <- SequenceNumber: 3344
    127.0.0.1       <- File: app_userevent.c
    127.0.0.1       <- Line: 79
    127.0.0.1       <- Func: userevent_exec
    127.0.0.1       <- UserEvent: FOP2ASTDB
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Family: fop2state
    127.0.0.1       <- Channel: SIP/9998
    127.0.0.1       <- Value: Do not Disturb
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3345
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 8
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DB(DND/9998)=YES
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: hud,all
    127.0.0.1       <- SequenceNumber: 3346
    127.0.0.1       <- File: db.c
    127.0.0.1       <- Line: 146
    127.0.0.1       <- Func: ast_db_put
    127.0.0.1       <- UserEvent: DBPut
    127.0.0.1       <- Family: DND
    127.0.0.1       <- Key: 9998
    127.0.0.1       <- Value: YES
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3347
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: STATE=BUSY
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3348
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: STATE
    127.0.0.1       <- Value: BUSY
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3349
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 10
    127.0.0.1       <- Application: Gosub
    127.0.0.1       <- AppData: app-dnd-on,sstate,1()
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3350
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 1
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVICE_STATE(Custom:DND9998)=BUSY
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: hud,all
    127.0.0.1       <- SequenceNumber: 3351
    127.0.0.1       <- File: db.c
    127.0.0.1       <- Line: 146
    127.0.0.1       <- Func: ast_db_put
    127.0.0.1       <- UserEvent: DBPut
    127.0.0.1       <- Family: CustomDevstate
    127.0.0.1       <- Key: DND9998
    127.0.0.1       <- Value: BUSY
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3352
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: DB_RESULT
    127.0.0.1       <- Value: 9998
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3353
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 2
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVICES=9998
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3354
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: DEVICES
    127.0.0.1       <- Value: 9998
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: ExtensionStatus
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- SequenceNumber: 3355
    127.0.0.1       <- File: manager.c
    127.0.0.1       <- Line: 3381
    127.0.0.1       <- Func: manager_state_cb
    127.0.0.1       <- Exten: 9998
    127.0.0.1       <- Context: ext-local
    127.0.0.1       <- Hint: SIP/9998&Custom:DND9998
    127.0.0.1       <- Status: 2
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3356
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 3
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?return
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3357
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 4
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: LOOPCNT=1
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3358
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: LOOPCNT
    127.0.0.1       <- Value: 1
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3359
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 5
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: ITER=1
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3360
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: ITER
    127.0.0.1       <- Value: 1
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3361
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 6
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: DEVICE_STATE(Custom:DEVDND9998)=BUSY
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: UserEvent
    127.0.0.1       <- Privilege: hud,all
    127.0.0.1       <- SequenceNumber: 3362
    127.0.0.1       <- File: db.c
    127.0.0.1       <- Line: 146
    127.0.0.1       <- Func: ast_db_put
    127.0.0.1       <- UserEvent: DBPut
    127.0.0.1       <- Family: CustomDevstate
    127.0.0.1       <- Key: DEVDND9998
    127.0.0.1       <- Value: BUSY
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3363
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 7
    127.0.0.1       <- Application: Set
    127.0.0.1       <- AppData: ITER=2
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3364
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: ITER
    127.0.0.1       <- Value: 2
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: ExtensionStatus
    127.0.0.1       <- Privilege: call,all
    127.0.0.1       <- SequenceNumber: 3365
    127.0.0.1       <- File: manager.c
    127.0.0.1       <- Line: 3381
    127.0.0.1       <- Func: manager_state_cb
    127.0.0.1       <- Exten: *769998
    127.0.0.1       <- Context: ext-dnd-hints
    127.0.0.1       <- Hint: Custom:DEVDND9998
    127.0.0.1       <- Status: 2
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3366
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 8
    127.0.0.1       <- Application: GotoIf
    127.0.0.1       <- AppData: 0?begin
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3367
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: app-dnd-on
    127.0.0.1       <- Extension: sstate
    127.0.0.1       <- Priority: 9
    127.0.0.1       <- Application: Return
    127.0.0.1       <- AppData:
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: VarSet
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3368
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 8186
    127.0.0.1       <- Func: pbx_builtin_setvar_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Variable: GOSUB_RETVAL
    127.0.0.1       <- Value:
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- 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       <- Event: Newexten
    127.0.0.1       <- Privilege: dialplan,all
    127.0.0.1       <- SequenceNumber: 3369
    127.0.0.1       <- File: pbx.c
    127.0.0.1       <- Line: 3144
    127.0.0.1       <- Func: pbx_extension_helper
    127.0.0.1       <- Channel: SIP/9998-00000251
    127.0.0.1       <- Context: from-internal
    127.0.0.1       <- Extension: *78
    127.0.0.1       <- Priority: 11
    127.0.0.1       <- Application: Playback
    127.0.0.1       <- AppData: do-not-disturb&activated
    127.0.0.1       <- Uniqueid: 1350360483.735
    127.0.0.1       <- Server: 0

    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.

  5. Thu Sep 20 20:33:17 2012
    TRAFSupport posted in buttons_custom.cfg not being loaded.

    Thanks,

    I got it working now, however how I did it was not what I expected. It looks like when you set FOP2 to connect to multiple servers, if you build the extensions as a mirror on both servers, FOP2 picks up hints from whichever is actually registered/active. There is no need to create any custom buttons using the "server=" value what so ever.

    The added advantage is I can also use display groups without it affecting the visibility of the buttons. I don't know if this will work for others, but this might help people who are having issues with the FreePBX admin module and monitoring multiple servers.

    Thanks,

  6. Sat Sep 15 23:36:45 2012
    TRAFSupport started the conversation FreePBX Presence Refresh Issues.

    Hello,

    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.

    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.

    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.

    Any assistance would be appreciated, because as far as I can tell from logs, etc, this should be working.

    Thanks,

  7. Sat Sep 15 23:10:22 2012
    TRAFSupport posted in buttons_custom.cfg not being loaded.

    Hello,

    I am having a similar issue.

    I have FOP2 registered and set up to monitor two servers and because I am using FreePBX, I have to define buttons for these users manually using the "server=" value.

    When I run autoconfig-users-freepbx.sh, it does show that it is parsing the buttons_custom.cfg file, but the custom buttons do not show in FOP. I originally tried with no groups set in FreePBX, then I tried setting up a group ("ALL") and manually joining that button to it using a "group=ALL" value, but it still does not show up. I have ensured that the user I am logging into FOP2 as, is able to see that group.

    The test extension in buttons_custom.cfg looks like the following:
    [SIP/${XXXX}]
    type=extension
    extension=${XXXX}
    context=from-internal
    label=${LABEL}
    server=${HOST_IP}

    With an optionally added "group=ALL" for after I tried creating a group to see if that would help.

    Any information as to why I can't get these buttons to show up would be appreciated.

    Thank you,