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. Zap or Dadhi Trunk (Elastix 1.5.2)

Zap or Dadhi Trunk (Elastix 1.5.2)

Scheduled Pinned Locked Moved Support
9 Posts 2 Posters 219 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.
  • N
    N
    nsumner
    wrote on last edited by
    #1

    I am pretty new to Asterisk so please be forgiving.

    I am really impressed by FOP2 so we decided to buy it. I know that when I had the buttons auto configured the ZAP/DADHI trunk never showed as being in use.

    In freepbx it list a PRI trunk as being ZAP/g0 (DADHI compatability mode) . Dadhi is installed and in use on the sytem.

    Running the script to create buttons it creates

    [DADHI/1]
    type=trunk
    label=DADHI
    channel=DADHI/30
    channel=DADHI/31

    What is the correct setup for this trunk? DADHI or ZAP?

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

      Hi,

      You probably need DAHDI, but it seems you have the autoconfig-buttons-freepbx.sh with a typo for Zap trunks... look for the line:

      asterisk -rx "zap show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n 2 | while read LINEA
      

      and change it to:

      asterisk -rx "zap show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +2 | while read LINEA
      

      (Add the plus sign before the number 2 and after "tail -n ").

      Finally restart fop2:

      service fop2 restart
      

      Best regards,

      1 Reply Last reply
      0
      • N
        N
        nsumner
        wrote on last edited by
        #3

        I am not using the autoconfig script. Is there any way to determine for sure whether I need DADHI or ZAP?

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

          If you do a "show channels" in the asterisk console when making some calls and see DAHDI/xx, then you have to use DAHDI. If you see ZAP, then change it to ZAP.

          Anyways, the auto config script is creating your trunk incorrectly, as it only shows the 1st channel and the last two. If you write the config by hand it should look like:

          [DADHI/1]
          type=trunk
          label=DADHI trunk
          channel=DADHI/2
          channel=DADHI/3
          channel=DADHI/4
          channel=DADHI/5
          channel=DADHI/6
          channel=DADHI/7
          channel=DADHI/8
          channel=DADHI/9
          .. {snip } ..
          channel=DADHI/30
          channel=DADHI/31
          
          1 Reply Last reply
          0
          • N
            N
            nsumner
            wrote on last edited by
            #5

            Okay, I put in the appropriate code but it still never shows any channels being in use.

            I even tried setting to
            channel=DADHI/1-1
            channel=DADHI/2-1
            ...

            Still no luck.

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

              Hi,

              That is not correct, you have to remove the "-1" suffix from the channel name. Use only DAHDI/1, DAHDI/2, etc.

              Best regards,

              1 Reply Last reply
              0
              • N
                N
                nsumner
                wrote on last edited by
                #7

                I guess I was unclear I tried it both with and without the /1.

                IE I tried first DADHI/1
                DADHI/2
                ...

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

                  Okay, simply user problem
                  DADHI != DAHDI

                  enough said...

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

                    Digium choose that name to make our lives easier!

                    Zap is harder to mispell: ZAP, AZP, PAZ

                    But Dahdi : DADHI, DAHDI, DHADI, they all look the same!

                    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