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. Mix #Exec and Static Configs

Mix #Exec and Static Configs

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 49 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.
  • A
    A
    alex_rhys-hurn
    wrote on last edited by
    #1

    Hello,

    I am having a problem where my Dahdi extensions and trunks show up but dont work interactively in FOP2.

    I am using the latest beta with fop2admin in Trixbox 2.8 with openvox 4 port fxo card A400P

    I have been able to make the Dahdi buttons work with a static config, but not with the fop2admin tool.

    I read elsewhere in this forum that it is possible to mix static and #exec configs. Is this possible with fop2admin? If so can you give me some pointers on how to get started?

    Thank you.

    Alex

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

      Hello,

      It would be great to have it working with fop2admin. I wonder why it does not work with it but it does work with your manual config? You can find out by running the script autoconfig-buttons-freepbx.sh by hand at the linux console, it will output all the button configuration including trunks. You can compare the trunk config with your working manual config and find the difference. If it is a bug I will be able to fix it.

      Now, in order to mix configurations, you can edit autobuttons.cfg and add your static buttons before the #exec line

      Best regards,

      1 Reply Last reply
      0
      • A
        A
        alex_rhys-hurn
        wrote on last edited by
        #3

        Hi Nicolas,

        Thank you for the fast reply.

        I have found the problem, Its very odd. A Bug I think.

        This is the code snippet for a DAHDI extension as generated by autoconfig-buttons-freepbx.sh This does not work:

        [ZAP/3]
        type=extension
        extension=1003
        label=Vincent Gitobu
        mailbox=1003@default
        context=from-internal
        queuecontext=from-internal
        extenvoicemail=*1003@default
        privacy=none
        group=Office
        

        And this is the code that is generated manually by me following the buttons.cfg.sample. This Does work. I bolded the differences:

        [DAHDI/3]
        type=extension
        extension=1003
        label=Vincent Gitobu
        mailbox=1003@default
        context=from-internal
        queuecontext=from-internal
        extenvoicemail=*1003@default
        privacy=none
        group=Office
        channel=DAHDI/3
        

        The problem is clear! For some reason the script is not generating Dahdi buttons as Dahdi but as ZAP, and is also not putting the channel= line in place.

        Is it possible for you to fix this and release another beta? Now I realize that those folks using ZAP may need it as ZAP so I don't know what mechanism you have to detect between ZAP and DAHDI (I am not a programmer).

        Your help appreciated.

        Alex

        1 Reply Last reply
        0
        • A
          A
          alex_rhys-hurn
          wrote on last edited by
          #4

          I should also add that if I add my DAHDI buttons to autoconfig.cfg before the #exec command it then duplicates my DAHDI buttons and only the buttons that I manually put in autobuttons.cfg work, those automatically generated dont work.

          Regards

          Alex

          1 Reply Last reply
          0
          • A
            A
            alex_rhys-hurn
            wrote on last edited by
            #5

            Hello,

            Has anyone else seen this?

            Is there any solution?

            Thanks

            Alex

            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