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. How to show two different dahdi channels on FOP2 web panel

How to show two different dahdi channels on FOP2 web panel

Scheduled Pinned Locked Moved Support
2 Posts 2 Posters 95 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.
  • M
    M
    M4Biz
    wrote on last edited by
    #1

    On my 2.8.0.3 TB server is installed a Sangoma A200 card with two FXO each connected to a differente PSTN line.
    In my FOP2 panel only one DAHADI channel is showed even if all the two channels works well in my phone system.
    This is an extraxt of autoconfig-buttons-freepbx.sh :

    DAHDI=asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | head -n 1
    if [ "X${DAHDI}" != "X" ]; then
    echo
    echo "[DAHDI/$DAHDI]"
    echo "type=trunk"
    echo "label=Telecom Italia 1"
    asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +2 | while read LINEA
    do
    echo "channel=DAHDI/$LINEA"
    done
    fi

    Is needed any different configuration in the autoconfig-buttons-freepbx.sh to show even the second dahdi channel?
    Thanks in advance.
    Ing. Cosimo MERCURO
    Mercuro for Business

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

      Hi,

      You have to modify the script to show individual channels instead of grouping them as the current one. Something similar to this: (have not tested it)

      asterisk -rx "dahdi show channels" | grep -v from-internal | grep -v pseudo | grep -v Language | awk '{print $1}' | tail -n +1 | while read LINEA
      do
      echo "[DAHDI/$LINEA]"
      echo "type=trunk"
      echo "label=line $LINEA"
      done
      fi

      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