Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. toolbar buttons nothing happens upon click (SOLVED)

toolbar buttons nothing happens upon click (SOLVED)

Scheduled Pinned Locked Moved Support
25 Posts 4 Posters 437 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    J
    jmituzas
    wrote on last edited by
    #1

    On my toolbar I have all the buttons, but when I click on any of them with the exception of hangup, nothing happens.
    The most important would be to get recording up and going, but would like to have all these features working within FOP2.

    The problem may be extension to extension calls?
    As of now I have it setup for testing, no SIP. I have 2 phones each given an extension and can dial out on POTS (4) lines.
    I have only tried these features with extension to extension calls. Do these features apply to these kinds of calls?

    I have within my FreePBX setting to always record incoming and outgoing calls.

    As well as within my fop2.cfg settings for my 2 extensions:

    user=6910:6910:all
    user=6920:6920:all

    I guess my question is do I need to do any further configurations to get these buttons to work?

    Thanks in advance,

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Hello,

      Actions work for all type of calls. There is a bug in the record action (that is fixed on the next release) that prevents you from start a recording for a call that was UP before fop2_server was started. It works fine if the calls are made after fop2 start. So I believe nobody noticed about this minor problem.

      If you need to debug, you will have to start fop2_server in debug mode. ( /usr/local/fop/fop2_server -X 15 ) and look at the output while you try the actions.

      The most probable reason is misconfiguration in your button file, or perhaps not enough permissions in manager.conf

      Best regards,

      1 Reply Last reply
      0
      • J
        J
        jmituzas
        wrote on last edited by
        #3

        Thanks once again Nicolás.
        Debug mode will help out I'm sure, or at least it helped me with getting FreePBX configured correctly.

        1 Reply Last reply
        0
        • J
          J
          jmituzas
          wrote on last edited by
          #4

          The most probable reason is misconfiguration in your button file, or perhaps not enough permissions in manager.conf

          Just one more question who do I give permissions to my users within FreePBX and FOP2 are by extension.
          So do I write this as :

          [6910]
          secret = password
          deny=0.0.0.0/0.0.0.0
          permit=127.0.0.1/255.255.255.0
          read = all,system,call,log,verbose,command,agent,user,originate
          write = all,system,call,log,verbose,command,agent,user,originate
          [6920]
          secret = password
          deny=0.0.0.0/0.0.0.0
          permit=127.0.0.1/255.255.255.0
          read = all,system,call,log,verbose,command,agent,user,originate
          write = all,system,call,log,verbose,command,agent,user,originate

          or, do I write it as:

          [fop2]
          secret = password
          deny=0.0.0.0/0.0.0.0
          permit=127.0.0.1/255.255.255.0
          read = all,system,call,log,verbose,command,agent,user,originate
          write = all,system,call,log,verbose,command,agent,user,originate


          also my fop2.cfg file is set as:

          manager_user : (same name as manager.conf)
          manager_secret: (same password as manager.conf)

          Thanks in advance,

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #5

            Fop2 users are defined in fop2.cfg and are independant of manager users. If you have manager users defined for some other tool, you can leave them as is.. but for FOP2 you only need ONE manager user.. so the 2nd entry is the correct one.

            That's for manager authentication. If you use freepbx do not modify fop2.cfg except for the manager user and password, and leave the user and button config to the autoconfig-* scripts (that is: use the stock fop2.cfg and modify the first 4 lines, leave all the rest as is).

            1 Reply Last reply
            0
            • J
              J
              jmituzas
              wrote on last edited by
              #6

              am trying to get this to work I got the debug mode to start once when I had the listen port to 4446... since then it states:
              Flash Operator Panel 2 - No valid license found. Demo Mode

              Can't listen to port 4446

              Have changed to like your manual states to listen on port 5038 think that may have been the problem but same message.

              Can't listen to port 5038

              and when i run the test it states:
              /usr/local/fop2/fop2_server --test
              Flash Operator Panel 2 - No valid license found. Demo Mode
              Connection to manager OK!

              1 Reply Last reply
              0
              • J
                J
                jmituzas
                wrote on last edited by
                #7

                Nevermind it wouldn't work on that port so I tried 4446 again and that didn't work either but 4447 did... What is up with this.. why do I have to keep changing the listen to port?

                loged in debug mode:

                No flash clients connected

                ... <= <msg data="GENERAL|contexto|1|" />
                ... => { 'btn': '0', 'cmd': 'key', 'data': 'qgM2hm4glwCZcN5qwlav0NRqCUgfkGAE', 'slot': '' }

                ... => { 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.00', 'slot': '' }

                ... <= <msg data="1|auth|6910|19eeb1b17b15839e0550de9390a5292d" />
                ... => { 'btn': '0@GENERAL', 'cmd': 'permit', 'data': 'YWxs', 'slot': '' }

                ... => { 'btn': '16@GENERAL', 'cmd': 'zbuttons', 'data': 'ldVBb5swFAfwez8FuU6qGoPtjQNSaYoaWgJRE7Xd0SUvrVViInC2EvXDD5Juausny7vBA9k//s/G5PwqyZPbOHt73Gldq7dR8rBM8kVa5FEwJuPj7V2RTpJZnGbRt6F4voK12FV6NJQuiofoUzGLL5IsipUS3v0zVNsKuuHFfDKN87x/skjnZ4ehlz/nSQSvGlQrazWaFPmyny1aN/XmVCoNjRLViW8F+hjQx4C+AazgVbbeVHTQIj7f0RdYfBQLkGIBUjPAG7l5hKbqvHuQq41QykBS5xCpFRlgyABDBl+RmVSrVnTeVa32ooI9YgwcjcxiZFiQDAuSmUHOhW5kKYU3K3umfKrAUDLnJLlViSxHhi1HZi7Ha1ivG+i8hfjdQYMIXRfkd4uQj8emcCj2mF+yhH/Aj7Wj7xZK2Op+WtlqQ3cY10n3w6pDusyxLnOzy9d1C9tnbyb1bi/MDc2dOxxahQwTMiQ/9iW/u7q/3ghZeaIsocWEzFHYf7uNyDEiR4j8/4nclUhsxBDrc0hM4ofa+14ulguPmLDQtbvEdp7wENnAQ9GE+RjMR2Cu25bYDhIeIv/ooWjCAgwWIDDX/zKxHR48pBiMIjCKwSgCo64w88T4O9BlPL1Mz+j7TIe7TxMdn5PjPLrZqZeTPw==', 'slot': '' }

                ... <= <msg data="1|initState||19eeb1b17b15839e0550de9390a5292d" />
                ... => { 'btn': '1@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '2@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '3@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '4@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '5@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '6@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '7@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '8@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '9@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '10@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                ... => { 'btn': '15@GENERAL', 'cmd': 'settext', 'data': '', 'slot': '0' }

                ... => { 'btn': '15@GENERAL', 'cmd': 'state', 'data': 'DOWN', 'slot': '0' }


                dial another extension gives me this:

                127.0.0.1 <- Event: Newstate
                127.0.0.1 <- Privilege: call,all
                127.0.0.1 <- Channel: DAHDI/6-1
                127.0.0.1 <- State: Up
                127.0.0.1 <- CallerID: <unknown>
                127.0.0.1 <- CallerIDName: Free For All Incorporated
                127.0.0.1 <- Uniqueid: 1260842164.38
                127.0.0.1 <- Server: 0

                127.0.0.1 <- Event: Link
                127.0.0.1 <- Privilege: call,all
                127.0.0.1 <- Channel1: DAHDI/6-1
                127.0.0.1 <- Channel2: DAHDI/5-1
                127.0.0.1 <- Uniqueid1: 1260842164.38
                127.0.0.1 <- Uniqueid2: 1260842172.39
                127.0.0.1 <- CallerID1:
                127.0.0.1 <- CallerID2: 6910
                127.0.0.1 <- Server: 0

                127.0.0.1 <- Event: ExtensionStatus
                127.0.0.1 <- Privilege: call,all
                127.0.0.1 <- Exten: 6010
                127.0.0.1 <- Context: default
                127.0.0.1 <- Status: 1
                127.0.0.1 <- Server: 0

                127.0.0.1 <- Event: ExtensionStatus
                127.0.0.1 <- Privilege: call,all
                127.0.0.1 <- Exten: 6910
                127.0.0.1 <- Context: ext-local
                127.0.0.1 <- Status: 1
                127.0.0.1 <- Server: 0

                127.0.0.1 <- Event: ExtensionStatus
                127.0.0.1 <- Privilege: call,all
                127.0.0.1 <- Exten: 6920
                127.0.0.1 <- Context: ext-local
                127.0.0.1 <- Status: 1
                127.0.0.1 <- Server: 0

                pressing record gives me this:

                127.0.0.1 -> Action: Monitor
                127.0.0.1 -> Channel:
                127.0.0.1 -> ActionID: monitor-Monitor-
                127.0.0.1 -> Mix: 1
                127.0.0.1 -> File: 6910-1260842319
                127.0.0.1 -> Async: True

                127.0.0.1 <- Response: Error
                127.0.0.1 <- ActionID: monitor-Monitor-
                127.0.0.1 <- Message: No channel specified
                127.0.0.1 <- Server: 0


                I guess my question is now How do I specify a channel?

                1 Reply Last reply
                0
                • N
                  N
                  nicolas
                  wrote on last edited by
                  #8

                  5038 is the asterisk manager port, it is not possible to run fop2 on that port. And I am not sure where you read that you have to set the listen_port to that number?... It is also not advisable to change the listen port on fop2. Just comment that line out, leave it as is so it uses port 4445.

                  Then be sure to change fop1 listen port to something else than 4445, as stated in the FAQ. Or just stop fop1 altogether...

                  If you change fop2 port, you will also need to set the web_dir...if you want to keep it simple, DO NOT change fop2 port to anything, leave the fop2.cfg file alone, just change the manager user and password.

                  No program can be set to listen on a port that is already binded/used by another process.

                  Best regards,

                  1 Reply Last reply
                  0
                  • J
                    J
                    jmituzas
                    wrote on last edited by
                    #9

                    I have fixed that thanks, Please take a look above as I have edited my previous post. Thank you very much.

                    1 Reply Last reply
                    0
                    • N
                      N
                      nicolas
                      wrote on last edited by
                      #10

                      Not sure what to answer as you are not showing your button file....

                      Anyways, as I previosuly mentioned there is a bug in the record action that prevents the system from start recording if the call was up before you start fop2_server. If the call is made after fop2 starts then you won't have that problem.

                      And it would be better to have a debug level 15 to see the commands between the web client and fop2 server too.

                      Also record works on bridged calls, if the call is not bridged it will fail.

                      Best regards,

                      1 Reply Last reply
                      0
                      • J
                        J
                        jmituzas
                        wrote on last edited by
                        #11

                        sorry about that (me not following directions)
                        for the extensions I have up here is my button.cfg:

                        [SIP/6910]
                        type=extension
                        extension=6910
                        label=POTS 1
                        mailbox=jmituzas@gmail.com
                        context=from-internal
                        extenvoicemail=*6910@device

                        [SIP/6920]
                        type=extension
                        extension=6920
                        label=POTS 2
                        mailbox=jmituzas@gmail.com
                        context=from-internal
                        extenvoicemail=*6920@device

                        [SIP/6930]
                        type=extension
                        extension=6930
                        label=POTS 3
                        mailbox=6930@device
                        context=from-internal
                        extenvoicemail=*6930@device

                        [SIP/6940]
                        type=extension
                        extension=6940
                        label=POTS 4
                        mailbox=6940@device
                        context=from-internal
                        extenvoicemail=*6940@device

                        [DAHDI/1]
                        type=trunk
                        label=DAHDI
                        channel=DAHDI/3
                        channel=DAHDI/4


                        ok start the fop2 in debug mode and trial to dial another extension:
                        /usr/local/fop2/fop2_server -X 15

                        10.30.20.137 => <?xml version="1.0"?>
                        <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
                        <cross-domain-policy>
                        <allow-access-from domain="*" to-ports="4444" />
                        </cross-domain-policy>

                        ** CLEAN SOCKET connection lost removing socket IO::Socket::INET=GLOB(0xec6d730)
                        ** CLEAN SOCKET flash client connection lost
                        No flash clients connected

                        10.30.20.137 <= <msg data="GENERAL|contexto|1|" />
                        10.30.20.137 => { 'btn': '0', 'cmd': 'key', 'data': 'UaOOw2cpN8ysPsC6cZn9nR7z4gL', 'slot': '' }

                        10.30.20.137 => { 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.00', 'slot': '' }

                        10.30.20.137 <= <msg data="1|auth|6910|7049c25fd66678daffafc348c3a2c654" />
                        10.30.20.137 => { 'btn': '0@GENERAL', 'cmd': 'permit', 'data': 'YWxs', 'slot': '' }

                        10.30.20.137 => { 'btn': '16@GENERAL', 'cmd': 'zbuttons', 'data': 'ldVBb5swFAfwez8FuU7aGsD2xgEpNEUNHSFRE7Xd0SUvrTcwEThbifrhB2Gd0vrJcm/wQPaP/7OxO7mKs/gmSl8e9kpV8mUU36/jbJUsstAfu+Ph9naRTON5lKThp7442cCW7ws16ksXi/vwTTGNLuI0jKTkzt0TFLsC2v7FbDqLsqx7skqW58eh1z+WcQjPCmQjKjmaLrJ1N1u4ravys5AKasmLM88I9DCghwE9DVjAs2icGW+hQXyepc83+AgWIMECJHqA30X5AHXROncgNiWXUkMS6xCJEeljSB9D+u+RqZCbhrfOVSUPvIADYvQtjdRgpFiQFAuS6kEuuapFLrgzzzumeCxAU1LrJJlRiSxHii1Hqi/Ha9hua2idFf/TQo0IbRfkV4OQjce6sC92mN8ih//A09rgu4EcdqqbVjRK0x3HtdJ9M+qQLjOsy0zv8nXVwO7JmQu1P3B9QzPrDgdGIcWEFMmPvsvvtuquSy4Kh+c5NJiQWgq7bzcRGUZkCJF9nMhsia6JGGB9DlyN+LMcujl57FVf8qp83dKL9cpxdV9g22TXdKywANnHffFjPg/x2W5i13SssAD5Y/dFrcUntROYj8Bs/9Ku6ShhAcFgBIERDEYQGLGF6efH60CX0ewyOSf/ZjrevZloeO4O86h6L3+d/QU=', 'slot': '' }

                        10.30.20.137 <= <msg data="1|initState||7049c25fd66678daffafc348c3a2c654" />
                        10.30.20.137 => { 'btn': '1@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '2@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '3@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '4@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '5@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '6@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '7@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '8@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '9@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '10@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                        10.30.20.137 => { 'btn': '15@GENERAL', 'cmd': 'settext', 'data': '', 'slot': '0' }

                        10.30.20.137 => { 'btn': '15@GENERAL', 'cmd': 'state', 'data': 'DOWN', 'slot': '0' }

                        10.30.20.137 <= <msg data="11|originate|12|7049c25fd66678daffafc348c3a2c654" />

                        127.0.0.1 -> Action: Originate
                        127.0.0.1 -> Channel: SIP/6910
                        127.0.0.1 -> Exten: 6920
                        127.0.0.1 -> Context: from-internal
                        127.0.0.1 -> Priority: 1
                        127.0.0.1 -> CallerID: <6910>
                        127.0.0.1 -> Async: True

                        127.0.0.1 <- Response: Success
                        127.0.0.1 <- Message: Originate successfully queued
                        127.0.0.1 <- Server: 0

                        Response: Success
                        Message: Originate successfully queued
                        Server: 0

                        127.0.0.1 <- Event: Newchannel
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel:
                        127.0.0.1 <- State: Down
                        127.0.0.1 <- CallerIDNum: <unknown>
                        127.0.0.1 <- CallerIDName: <unknown>
                        127.0.0.1 <- Uniqueid: 1260845705.0
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: OriginateResponse
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Response: Failure
                        127.0.0.1 <- Channel: SIP/6910
                        127.0.0.1 <- Context: from-internal
                        127.0.0.1 <- Exten: 6920
                        127.0.0.1 <- Reason: 0
                        127.0.0.1 <- Uniqueid: <null>
                        127.0.0.1 <- CallerID: 6910
                        127.0.0.1 <- CallerIDNum: 6910
                        127.0.0.1 <- CallerIDName: <unknown>
                        127.0.0.1 <- Server: 0


                        heres what it looks like when on the phone dial another extension:
                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 4
                        127.0.0.1 <- Application: Set
                        127.0.0.1 <- AppData: EXTTOCALL=6920
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 5
                        127.0.0.1 <- Application: Set
                        127.0.0.1 <- AppData: CFUEXT=
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 6
                        127.0.0.1 <- Application: Set
                        127.0.0.1 <- AppData: CFBEXT=
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 7
                        127.0.0.1 <- Application: Set
                        127.0.0.1 <- AppData: RT=15
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 8
                        127.0.0.1 <- Application: Macro
                        127.0.0.1 <- AppData: record-enable|6920|IN
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-record-enable
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 1
                        127.0.0.1 <- Application: GotoIf
                        127.0.0.1 <- AppData: 1?check
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-record-enable
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 4
                        127.0.0.1 <- Application: AGI
                        127.0.0.1 <- AppData: recordingcheck|20091214-220142|1260846095.2
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-record-enable
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 999
                        127.0.0.1 <- Application: MixMonitor
                        127.0.0.1 <- AppData: /recordings20091214-220142-1260846095.2.wav||
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-exten-vm
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 9
                        127.0.0.1 <- Application: Macro
                        127.0.0.1 <- AppData: dial|15|tr|6920
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-dial
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 1
                        127.0.0.1 <- Application: GotoIf
                        127.0.0.1 <- AppData: 1?dial
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-dial
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 3
                        127.0.0.1 <- Application: AGI
                        127.0.0.1 <- AppData: dialparties.agi
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newexten
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- Context: macro-dial
                        127.0.0.1 <- Extension: s
                        127.0.0.1 <- Priority: 7
                        127.0.0.1 <- Application: Dial
                        127.0.0.1 <- AppData: DAHDI/6|15|tr
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newchannel
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/6-1
                        127.0.0.1 <- State: Rsrvd
                        127.0.0.1 <- CallerIDNum: <unknown>
                        127.0.0.1 <- CallerIDName: Free For All Incorporated
                        127.0.0.1 <- Uniqueid: 1260846102.3
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newstate
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/6-1
                        127.0.0.1 <- State: Ringing
                        127.0.0.1 <- CallerID: <unknown>
                        127.0.0.1 <- CallerIDName: Free For All Incorporated
                        127.0.0.1 <- Uniqueid: 1260846102.3
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Dial
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Source: DAHDI/5-1
                        127.0.0.1 <- Destination: DAHDI/6-1
                        127.0.0.1 <- CallerID: <unknown>
                        127.0.0.1 <- CallerIDName: Free For All Incorporated
                        127.0.0.1 <- SrcUniqueID: 1260846095.2
                        127.0.0.1 <- DestUniqueID: 1260846102.3
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6920
                        127.0.0.1 <- Context: ext-local
                        127.0.0.1 <- Status: 8
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newcallerid
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/6-1
                        127.0.0.1 <- CallerID: 6920
                        127.0.0.1 <- CallerIDName: <Unknown>
                        127.0.0.1 <- Uniqueid: 1260846102.3
                        127.0.0.1 <- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newstate
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- State: Ringing
                        127.0.0.1 <- CallerID: <unknown>
                        127.0.0.1 <- CallerIDName: Free For All Incorporated
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6010
                        127.0.0.1 <- Context: default
                        127.0.0.1 <- Status: 8
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6910
                        127.0.0.1 <- Context: ext-local
                        127.0.0.1 <- Status: 8
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newstate
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/6-1
                        127.0.0.1 <- State: Up
                        127.0.0.1 <- CallerID: 6920
                        127.0.0.1 <- CallerIDName: <unknown>
                        127.0.0.1 <- Uniqueid: 1260846102.3
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6920
                        127.0.0.1 <- Context: ext-local
                        127.0.0.1 <- Status: 1
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Newstate
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel: DAHDI/5-1
                        127.0.0.1 <- State: Up
                        127.0.0.1 <- CallerID: <unknown>
                        127.0.0.1 <- CallerIDName: Free For All Incorporated
                        127.0.0.1 <- Uniqueid: 1260846095.2
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6010
                        127.0.0.1 <- Context: default
                        127.0.0.1 <- Status: 1
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: ExtensionStatus
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Exten: 6910
                        127.0.0.1 <- Context: ext-local
                        127.0.0.1 <- Status: 1
                        127.0.0.1 <- Server: 0

                        127.0.0.1 <- Event: Link
                        127.0.0.1 <- Privilege: call,all
                        127.0.0.1 <- Channel1: DAHDI/5-1
                        127.0.0.1 <- Channel2: DAHDI/6-1
                        127.0.0.1 <- Uniqueid1: 1260846095.2
                        127.0.0.1 <- Uniqueid2: 1260846102.3
                        127.0.0.1 <- CallerID1:
                        127.0.0.1 <- CallerID2: 6920
                        127.0.0.1 <- Server: 0


                        highlight 6910 press record:

                        10.30.20.137 <= <msg data="11|record|11|152f109c512015a15e78c580917db111" />

                        127.0.0.1 -> Action: Monitor
                        127.0.0.1 -> Channel:
                        127.0.0.1 -> ActionID: monitor-Monitor-
                        127.0.0.1 -> Mix: 1
                        127.0.0.1 -> File: 6910-1260846264
                        127.0.0.1 -> Async: True

                        127.0.0.1 <- Response: Error
                        127.0.0.1 <- ActionID: monitor-Monitor-
                        127.0.0.1 <- Message: No channel specified
                        127.0.0.1 <- Server: 0


                        highlight 6920 press record:

                        10.30.20.137 <= <msg data="11|record|12|152f109c512015a15e78c580917db111" />

                        127.0.0.1 -> Action: Monitor
                        127.0.0.1 -> Channel:
                        127.0.0.1 -> ActionID: monitor-Monitor-
                        127.0.0.1 -> Mix: 1
                        127.0.0.1 -> File: 6920-1260846321
                        127.0.0.1 -> Async: True

                        127.0.0.1 <- Response: Error
                        127.0.0.1 <- ActionID: monitor-Monitor-
                        127.0.0.1 <- Message: No channel specified
                        127.0.0.1 <- Server: 0


                        hope I have posted enough information this time.
                        All of this was done after I have started fop2 in debug mode.
                        Thanks in advance,

                        1 Reply Last reply
                        0
                        • J
                          J
                          jmituzas
                          wrote on last edited by
                          #12

                          just looking qat it don't know where it got channel SIP/6910 from... its a dahdi channel specified in FreePBX for the extensions.. this is probably the problem. Where can I specify this as a dahdi channel within fop2?

                          1 Reply Last reply
                          0
                          • N
                            N
                            nicolas
                            wrote on last edited by
                            #13

                            Ok... I think you have the #exec autoconfig-buttons-freepbx.sh defined in your fop2.cfg altough you want to do a manual config... remove that line in fop2.cfg or comment it out so it looks like ";#exec ....".

                            The button.cfg you copied here does not match the events in the log.

                            1 Reply Last reply
                            0
                            • J
                              J
                              jmituzas
                              wrote on last edited by
                              #14

                              ok have done that and manually changed my button.cfg from SIP/6910 to DAHDI/6910 same as extensions 6920, 6930, and 6940 for those are extensions to the POTS lines directly.

                              Now when I log in as extension 6910 and try to dial extension 6920 it still fails and I get this:

                              10.30.20.137 <= <msg data="GENERAL|contexto|1|" />
                              10.30.20.137 => { 'btn': '0', 'cmd': 'key', 'data': '5tyRgiPJIYPw0lrCE4ie', 'slot': '' }

                              10.30.20.137 => { 'btn': '0@GENERAL', 'cmd': 'version', 'data': '2.00', 'slot': '' }

                              10.30.20.137 <= <msg data="1|auth|6910|397983a2c91e3c583334454a1fe1d406" />
                              10.30.20.137 => { 'btn': '0@GENERAL', 'cmd': 'permit', 'data': 'YWxs', 'slot': '' }

                              10.30.20.137 => { 'btn': '16@GENERAL', 'cmd': 'zbuttons', 'data': 'ldVRb9owEAfw936K8DppK0lsr3mIREqjki4EVFDbPbrhaL0lDkrM1qB++CWwVlCfLPeNHMj343927I6u4yy+jdLXx61SlXwdxA/LOFsksyz0h+7w8Hg3S8bxNErS8EtfHK1gzbeFGvSly9lDeFJMo8s4DSMpuXP/DMWmgLb/YTaeRFnWfbNI5uf7pZc/53EILwpkIyo5GM+yZdctXNdV+VVIBbXkxZlnBHoY0MOAngYs4EU0zoS30CA+z9LnG3wEC5BgARI9wB+ifIS6aJ17EKuSS6khiXWIxIj0MaSPIf2PyFTIVcNb57qSO17ADjH6lkZqMFIsSIoFSfUg51zVIhfcmeYdUzwVoCmpdZLMqES2I8W2I9W34w2s1zW0zoL/baFGhLYb8rtByIZDXdgXO8wfkcM78Lh28N1CDhvVtRWN0nT7da10F0YdMmWGTZnpU76pGtg8O1OhtjuuH2hmPeHAKKSYkCL50Q/53VXd55KLwuF5Dg0mpJbC7r+biAwjMoTIPk9ktkTXRAywOQeuRvxVHqY5eupV3/KqfDvSs+XCcU98V9HkKjnfL20nNF0sLEBOcl/8nNBDhbYH2TVdLSxA3tp9URvzUe2I5qM023e1a7pQWEAwGkFoBKMRlEZsafo9croU+d9r/4S0cg99VL2Vv8/+AQ==', 'slot': '' }

                              10.30.20.137 <= <msg data="1|initState||397983a2c91e3c583334454a1fe1d406" />
                              10.30.20.137 => { 'btn': '1@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '2@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '3@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '4@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '5@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '6@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '7@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '8@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '9@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '10@GENERAL', 'cmd': 'qualify', 'data': 'notok', 'slot': '0' }

                              10.30.20.137 => { 'btn': '15@GENERAL', 'cmd': 'settext', 'data': '', 'slot': '0' }

                              10.30.20.137 => { 'btn': '15@GENERAL', 'cmd': 'state', 'data': 'DOWN', 'slot': '0' }

                              10.30.20.137 <= <msg data="11|originate|12|397983a2c91e3c583334454a1fe1d406" />

                              127.0.0.1 -> Action: Originate
                              127.0.0.1 -> Channel: DAHDI/6910
                              127.0.0.1 -> Exten: 6920
                              127.0.0.1 -> Context: from-internal
                              127.0.0.1 -> Priority: 1
                              127.0.0.1 -> CallerID: <6910>
                              127.0.0.1 -> Async: True

                              127.0.0.1 <- Response: Success
                              127.0.0.1 <- Message: Originate successfully queued
                              127.0.0.1 <- Server: 0

                              Response: Success
                              Message: Originate successfully queued
                              Server: 0

                              127.0.0.1 <- Event: Newchannel
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel:
                              127.0.0.1 <- State: Down
                              127.0.0.1 <- CallerIDNum: <unknown>
                              127.0.0.1 <- CallerIDName: <unknown>
                              127.0.0.1 <- Uniqueid: 1260904100.1
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: OriginateResponse
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Response: Failure
                              127.0.0.1 <- Channel: DAHDI/6910
                              127.0.0.1 <- Context: from-internal
                              127.0.0.1 <- Exten: 6920
                              127.0.0.1 <- Reason: 0
                              127.0.0.1 <- Uniqueid: <null>
                              127.0.0.1 <- CallerID: 6910
                              127.0.0.1 <- CallerIDNum: 6910
                              127.0.0.1 <- CallerIDName: <unknown>
                              127.0.0.1 <- Server: 0


                              when I dial the extension from the phone itself I get this (sorry can't copy this in its entire I'm within an ssh session:

                              127.0.0.1 <- Application: Set
                              127.0.0.1 <- AppData: VMBOX=6920
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 4
                              127.0.0.1 <- Application: Set
                              127.0.0.1 <- AppData: EXTTOCALL=6920
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 5
                              127.0.0.1 <- Application: Set
                              127.0.0.1 <- AppData: CFUEXT=
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 6
                              127.0.0.1 <- Application: Set
                              127.0.0.1 <- AppData: CFBEXT=
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 7
                              127.0.0.1 <- Application: Set
                              127.0.0.1 <- AppData: RT=15
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 8
                              127.0.0.1 <- Application: Macro
                              127.0.0.1 <- AppData: record-enable|6920|IN
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-record-enable
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 1
                              127.0.0.1 <- Application: GotoIf
                              127.0.0.1 <- AppData: 1?check
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-record-enable
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 4
                              127.0.0.1 <- Application: AGI
                              127.0.0.1 <- AppData: recordingcheck|20091215-141123|1260904276.2
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-record-enable
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 999
                              127.0.0.1 <- Application: MixMonitor
                              127.0.0.1 <- AppData: /recordings20091215-141123-1260904276.2.wav||
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-exten-vm
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 9
                              127.0.0.1 <- Application: Macro
                              127.0.0.1 <- AppData: dial|15|tr|6920
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-dial
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 1
                              127.0.0.1 <- Application: GotoIf
                              127.0.0.1 <- AppData: 1?dial
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-dial
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 3
                              127.0.0.1 <- Application: AGI
                              127.0.0.1 <- AppData: dialparties.agi
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newexten
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- Context: macro-dial
                              127.0.0.1 <- Extension: s
                              127.0.0.1 <- Priority: 7
                              127.0.0.1 <- Application: Dial
                              127.0.0.1 <- AppData: DAHDI/6|15|tr
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newchannel
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/6-1
                              127.0.0.1 <- State: Rsrvd
                              127.0.0.1 <- CallerIDNum: <unknown>
                              127.0.0.1 <- CallerIDName: Free For All Incorporated
                              127.0.0.1 <- Uniqueid: 1260904283.3
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newstate
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/6-1
                              127.0.0.1 <- State: Ringing
                              127.0.0.1 <- CallerID: <unknown>
                              127.0.0.1 <- CallerIDName: Free For All Incorporated
                              127.0.0.1 <- Uniqueid: 1260904283.3
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Dial
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Source: DAHDI/5-1
                              127.0.0.1 <- Destination: DAHDI/6-1
                              127.0.0.1 <- CallerID: <unknown>
                              127.0.0.1 <- CallerIDName: Free For All Incorporated
                              127.0.0.1 <- SrcUniqueID: 1260904276.2
                              127.0.0.1 <- DestUniqueID: 1260904283.3
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newcallerid
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/6-1
                              127.0.0.1 <- CallerID: 6920
                              127.0.0.1 <- CallerIDName: <Unknown>
                              127.0.0.1 <- Uniqueid: 1260904283.3
                              127.0.0.1 <- CID-CallingPres: 0 (Presentation Allowed, Not Screened)
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newstate
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- State: Ringing
                              127.0.0.1 <- CallerID: <unknown>
                              127.0.0.1 <- CallerIDName: Free For All Incorporated
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6920
                              127.0.0.1 <- Context: ext-local
                              127.0.0.1 <- Status: 8
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6010
                              127.0.0.1 <- Context: default
                              127.0.0.1 <- Status: 8
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6910
                              127.0.0.1 <- Context: ext-local
                              127.0.0.1 <- Status: 8
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newstate
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/6-1
                              127.0.0.1 <- State: Up
                              127.0.0.1 <- CallerID: 6920
                              127.0.0.1 <- CallerIDName: <unknown>
                              127.0.0.1 <- Uniqueid: 1260904283.3
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Newstate
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel: DAHDI/5-1
                              127.0.0.1 <- State: Up
                              127.0.0.1 <- CallerID: <unknown>
                              127.0.0.1 <- CallerIDName: Free For All Incorporated
                              127.0.0.1 <- Uniqueid: 1260904276.2
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6920
                              127.0.0.1 <- Context: ext-local
                              127.0.0.1 <- Status: 1
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6010
                              127.0.0.1 <- Context: default
                              127.0.0.1 <- Status: 1
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: ExtensionStatus
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Exten: 6910
                              127.0.0.1 <- Context: ext-local
                              127.0.0.1 <- Status: 1
                              127.0.0.1 <- Server: 0

                              127.0.0.1 <- Event: Link
                              127.0.0.1 <- Privilege: call,all
                              127.0.0.1 <- Channel1: DAHDI/5-1
                              127.0.0.1 <- Channel2: DAHDI/6-1
                              127.0.0.1 <- Uniqueid1: 1260904276.2
                              127.0.0.1 <- Uniqueid2: 1260904283.3
                              127.0.0.1 <- CallerID1:
                              127.0.0.1 <- CallerID2: 6920
                              127.0.0.1 <- Server: 0


                              now when I press record I get this:
                              10.30.20.137 <= <msg data="11|record|11|577da20107f5723e91f7cdd1fffc5c0c" />

                              127.0.0.1 -> Action: Monitor
                              127.0.0.1 -> Channel:
                              127.0.0.1 -> ActionID: monitor-Monitor-
                              127.0.0.1 -> Mix: 1
                              127.0.0.1 -> File: 6910-1260904442
                              127.0.0.1 -> Async: True

                              127.0.0.1 <- Response: Error
                              127.0.0.1 <- ActionID: monitor-Monitor-
                              127.0.0.1 <- Message: No channel specified
                              127.0.0.1 <- Server: 0


                              This is getting to be very frustrating, many hours put into this and nothing works.
                              I am wondering where did I mess this up so bad. Is it from FOP2, my FreePBX setup or is it my Asterisk configuration files. I really wish that AsteriskNOW upon adding all these apps would have better documentation. I am starting to think that your app is fine because I have also set and wrote to the FreePBX forums as well regarding recording all incoming and outgoing calls. FreePBX doesn't record either and is setup to always record all calls for all extensions. Which leaves me to believe that it may be an Asterisk permission problem, but I have stated within the manager.conf file to grant permissions to these extensions as well as the manager, so I am at a complete loss.

                              I know better then to post the problems of other apps in this forum, and I thank you for your many responses since I get no feedback when I post to the FreePBX, or the AsteriskNOW forums regarding this issue.

                              Thanks again for your prompt replies!
                              Maybe you could give me some more options to try and troubleshoot
                              oh by the way, how do I exit debug mode, have tried exit, quit, -q, /q ? have been closing my session then logging back in to reboot. There has to be a better way.

                              1 Reply Last reply
                              0
                              • N
                                N
                                nicolas
                                wrote on last edited by
                                #15

                                ctrl-C to exit

                                DAHDI/39030303 does not exists, your dahdi channels are 5 and 6 from your logs... You can catch me online on the live help and give me access to your server, we can fix it together in no time. Much less time than writing endless posts in the forum with funky configs.

                                As you have DAHDI fxs channles, you have to use manual config for them right now or fix/patch the autoconfig script for adding them there as extensions and not trunk.

                                The frustration comes from not understaning how the configuration works, and not posting your config fully. Please come online and chat with me.. it would be MUCH quicker for you and for me.

                                1 Reply Last reply
                                0
                                • J
                                  J
                                  jmituzas
                                  wrote on last edited by
                                  #16

                                  Great Support once aggain from Nicolás, he has helped me out so much! Got my mis-configured FOP2 box all straighten out.

                                  1 Reply Last reply
                                  0
                                  • C
                                    C
                                    cluth
                                    wrote on last edited by
                                    #17

                                    I am having the same problem as the original poster--none of the buttons works except for hangup.

                                    This is on a more or less virgin Trixbox 2.8.0.3 installation (Asterisk 1.6.0.10). I've enabled the extension I am logging in with to have "all" permissions in the FOP2Admin module.

                                    I do not have a buttons.cfg file, as I am using the autoconfig-users-freepbx.sh file. The manager and secret in fop2.cfg are properly matched to manager.conf.

                                    Here are some excerpts from the debug log immediately after I try to click on some of the non-functional buttons:

                                    10.10.8.111     <= <msg data="14|originate|14|cc6911c5d086d504a994dec25a27e0af" />
                                    
                                    127.0.0.1       -> Action: Originate
                                    127.0.0.1       -> Channel: SIP/243
                                    127.0.0.1       -> Exten: 243
                                    127.0.0.1       -> Context: from-internal
                                    127.0.0.1       -> Priority: 1
                                    127.0.0.1       -> CallerID: [name] <243>
                                    127.0.0.1       -> Async: True
                                    
                                    127.0.0.1       <- Response: Error
                                    127.0.0.1       <- Message: Permission denied
                                    127.0.0.1       <- Server: 0
                                    
                                    Response: Error
                                    Message: Permission denied
                                    Server: 0
                                    
                                    -----
                                    
                                    10.10.8.111     <= <msg data="14|towhisper|14|cc6911c5d086d504a994dec25a27e0af" />
                                    
                                    127.0.0.1       <- Event: PeerStatus
                                    127.0.0.1       <- Privilege: system,all
                                    127.0.0.1       <- ChannelType: SIP
                                    127.0.0.1       <- Peer: SIP/231
                                    127.0.0.1       <- PeerStatus: Registered
                                    127.0.0.1       <- Server: 0
                                    
                                    -----
                                    
                                    127.0.0.1       <- Event: PeerStatus
                                    127.0.0.1       <- Privilege: system,all
                                    127.0.0.1       <- ChannelType: SIP
                                    127.0.0.1       <- Peer: SIP/237
                                    127.0.0.1       <- PeerStatus: Registered
                                    127.0.0.1       <- Server: 0
                                    
                                    127.0.0.1       <- Event: PeerStatus
                                    127.0.0.1       <- Privilege: system,all
                                    127.0.0.1       <- ChannelType: SIP
                                    127.0.0.1       <- Peer: SIP/234
                                    127.0.0.1       <- PeerStatus: Registered
                                    127.0.0.1       <- Server: 0
                                    
                                    -----
                                    
                                    10.10.8.111     <= <msg data="14|towhisper|12|2d80cea36d9bdc4535c47e7ba7c22db6" />
                                    
                                    -----
                                    
                                    10.10.8.111     <= <msg data="14|towhisper|12|2d80cea36d9bdc4535c47e7ba7c22db6" />
                                    
                                    10.10.8.111     <= <msg data="1|ping||" />
                                    10.10.8.111     => { 'btn': '0', 'cmd': 'pong', 'data': '0', 'slot': '' }
                                    

                                    I hope we can get this working, as I just bought FOP2 and am impressed with what it shows and the interface! 🙂

                                    1 Reply Last reply
                                    0
                                    • N
                                      N
                                      nicolas
                                      wrote on last edited by
                                      #18

                                      The "all" permission must be applied in /etc/asterisk/manager.conf . It is NOT a fop2 permission, but an Asterisk manager permission.

                                      You will be able to perform other commands if you add that to the manager user you are using in fop2.cfg, most probably "admin"

                                      Best regards,

                                      1 Reply Last reply
                                      0
                                      • C
                                        C
                                        cluth
                                        wrote on last edited by
                                        #19

                                        I tried replacing read = system,call,log,verbose,command,agent,user and write = [the same] with read = all and write = all. I still can't do listen or whisper, but the system is at least now responding to the Dial, Pickup, Transfer, and Transfer to Voicemail options.

                                        Here is the only line that appears in the Debug mode when I click "Whisper":

                                        10.10.8.115     <= <msg data="14|towhisper|12|c3a8877fb35e1b910870cb61a91263ef" />
                                        

                                        A similar line appears when I click "Listen."

                                        Here is the contents of manager.conf (I changed the permissions back to the default in case they were screwing things up):

                                        ;
                                        ; Asterisk Call Management support
                                        ;
                                        [general]
                                        enabled = yes
                                        port = 5038
                                        bindaddr = 0.0.0.0
                                        
                                        [admin]
                                        secret = *****
                                        deny=0.0.0.0/0.0.0.0
                                        permit=127.0.0.1/255.255.255.0
                                        read = all
                                        write = all
                                        
                                        #include manager_additional.conf
                                        #include manager_custom.conf
                                        

                                        And here is fop2.cfg:

                                        [general]
                                        ; AMI definitions
                                        manager_host=localhost
                                        manager_port=5038
                                        manager_user=admin
                                        manager_secret=***** [same as in manager.conf]
                                        ;event_mask=call,agent
                                        
                                        ; Daemon definitios
                                        ;listen_port      = 4445
                                        ;restrict_host    = www.asternic.org
                                        ;web_dir          = /var/www/html/operator/fop2
                                        
                                        ; Global Config
                                        language           = en
                                        poll_interval      = 86400
                                        poll_voicemail     = 1
                                        monitor_ipaddress  = 0
                                        
                                        ; Force blind transfer on asterisk 1.6
                                        blind_transfer     = 1
                                        
                                        ; Force supervised transfer on asterisk 1.4
                                        ; requires the atxfer manager backport patch
                                        ; supervised_transfer = 1
                                        
                                        ; Force delimiter for asterisk applications
                                        ; force_parameter_delimiter = ","
                                        
                                        ; When adding or removing members to a queue, fop2 will default to
                                        ; AddQueueMember/RemoveQueueMember commands. If you set use_agentlogin
                                        ; to 1, together with the QueueChannel in a button definition set to
                                        ; an Agent number it will use AgentCallbackLogin and Agentlogoff instead.
                                        ;
                                        ; use_agentlogin = 0
                                        
                                        
                                        ; Master Password that overrides any individual one
                                        ;master_key = [default]
                                        
                                        ; Filename to use when start monitoring, you can use ${UNIQUEID},
                                        ; ${ORIG_EXTENSION}, ${DEST_EXTENSION}
                                        ; and date formats %Y %m %d to construct the filename.
                                        ;
                                        ; Settings for modifying the recording filename
                                        ; Available variables are:
                                        ; ${UNIQUEID} = Unique Id of the call
                                        ; ${TIMESTAMP} = Unix Timestamp when the recording was initiated
                                        ; ${DEST_EXTENSION} = Target extenstion being monitored
                                        ; ${ORIG_EXTENSION} = Extension/User that started the recording (not
                                        ;                     the other leg)
                                        ; Date variables:
                                        ; %Y 4 digits year
                                        ; %y 2 digits year
                                        ; %m 2 digits month
                                        ; %d 2 digits day
                                        ; %h 2 digits hour
                                        ; %i 2 digits minute
                                        ; %s 2 digits seconds
                                        
                                        monitor_filename=g${DEST_EXTENSION}-${UNIQUEID}
                                        monitor_format=wav
                                        monitor_mix=true
                                        
                                        ; --- SAMPLE GROUPS ---
                                        ;group=queues:QUEUE/100,QUEUE/101
                                        ;group=deptA:SIP/100,SIP/101,SIP/102
                                        ; --- END SAMPLE ---
                                        
                                        ; --- SAMPLE USER LIST ---
                                        ; format: user= EXTENSION : SECRET : PERMISSIONS : GROUPS
                                        ; You can enumerate several permissions and groups separated by comma
                                        ; available permissions:  'all', 'dial', 'hangup', 'meetme', 'pickup',
                                        ;                         'record', 'spy', 'transfer', 'whisper',
                                        ;                         'queuemanager', 'queueagent', 'phonebook'
                                        ;
                                        ;user=620:1234:all:queues
                                        ;user=621:1234:dial,transfer,pickup:deptA
                                        ;user=622:1234:all
                                        ;user=623:1234:meetme,pickup
                                        ;buttonfile=buttons.cfg
                                        ; ------ END SAMPLE ------
                                        
                                        ; This line is NOT commented, it executes
                                        ; the autoconfig configuration for FreePBX
                                        #exec autoconfig-users-freepbx.sh
                                        

                                        Users and permissions are set in fop2admin. I have the users I am testing with set for "all" permissions, and the extensions I am trying to monitor set to "none". (The way the mouseover text for the Privacy column in fop2admin reads, it is hard to tell, but I think "none" means "no restrictions" and therefore it should work, whereas "all" means "all things restricted. Regardless, I tried it with all and nothing happened.)

                                        I have tried with Firefox, IE, and Google Chrome, just in case it is a browser issue.

                                        1 Reply Last reply
                                        0
                                        • N
                                          N
                                          nicolas
                                          wrote on last edited by
                                          #20

                                          You first had incorrect permissions in the manager user. Now you have another problem. Both listen and whisper use chanspy to work, and the command is properly sent between the client and server, you will need to inspect the manager events from and to asterisk ( -> <- in the logs), and the asterisk full log in order to look for problems with chanspy. There are some asterisk versions where chanspy is broken( 1.4.26 or something like that). You can incresease the debug log to -X 511 and also inspect the asterisk full log or console

                                          Best regards,

                                          1 Reply Last reply
                                          0

                                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                          With your input, this post could be even better 💗

                                          Register Login
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups