jmituzas

Member

Last active 13 years ago

  1. 14 years ago
    Wed Nov 25 17:01:14 2009
    jmituzas posted in No Trunk buttons Dahdi.

    Running script on AsteriskNOW box updated new headers, keep getting command not found errors within CentOS. Not FOP2's Fault but encase anyone else is having this problem heres the fix.

    sh autoconfig-buttons-freepbx.sh > buttons.cfg
    autoconfig-buttons-freepbx.sh: line 45: asterisk: command not found

    $nano autoconfig-buttons-freepbx.sh
    Referring to First line here :
    _________________________
    DAHDI=`asterisk -rx "zap 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=DAHDI"
    asterisk -rx "zap 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
    ___________________________________

    Fix:
    change first line where says 'asterisk -rx' to /usr/sbin/asterisk -rx
    and also changing the "zap show channels" to "dahdi show channels"
    seems to create the file correctly

  2. Fri Nov 20 15:59:14 2009
    jmituzas posted in No Trunk buttons Dahdi.

    Yes I have tried just that, could I not being able to see this be a result of having the free trial and not seeing anymore then 15 buttons.

  3. 15 years ago
    Fri Nov 13 20:08:44 2009
    jmituzas posted in No Trunk buttons Dahdi.

    Still having problems with getting dahdi trunks to show up. If anyone could atleast point me in the direction to get this up I would appreciate greatly.

    Thanks in advance

  4. Tue Nov 10 20:59:06 2009

    I have tried this, and upon running it, I get this output:

    Usage: sed [OPTION]... {script-only-if-no-other-script} [i]...

    -n, --quiet, --silent
    suppress automatic printing of pattern space
    -e script, --expression=script
    add the script to the commands to be executed
    -f script-file, --file=script-file
    add the contents of script-file to the commands to be executed
    -i[SUFFIX], --in-place[=SUFFIX]
    edit files in place (makes backup if extension supplied)
    -c, --copy
    use copy instead of rename when shuffling files in -i mode
    (avoids change of input file ownership)
    -l N, --line-length=N
    specify the desired line-wrap length for the `l' command
    --posix
    disable all GNU extensions.
    -r, --regexp-extended
    use extended regular expressions in the script.
    -s, --separate
    consider files as separate rather than as a single continuous
    long stream.
    -u, --unbuffered
    load minimal amounts of data from the input files and flush
    the output buffers more often

    • -help display this help and exit
    • -version output version information and exit

    If no -e, --expression, -f, or --file option is given, then the first
    non-option argument is taken as the sed script to interpret. All
    remaining arguments are names of input files; if no input files are
    specified, then the standard input is read.

    E-mail bug reports to: <!-- e --><a href="mailto:bonzini@gnu.org">bonzini@gnu.org</a><!-- e --> .
    Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.
    ERROR 2005 (HY000): Unknown MySQL server host '-e' (1)
    autoconfig-dahdi-trunks-freepbx.sh: line 3: /\*\*/d: No such file or directory

    What am I doing wrong?

  5. Tue Nov 10 20:46:15 2009
    jmituzas started the conversation No Trunk buttons Dahdi.

    I have followed the guide here http://www.fop2.com/documentation-confi ... unkButtons

    but still dosn't pick up my Dahdi trunks, is there an autoconfigure trunks script? To grab the trunks from freepbx, do I have to change anything for Dahdi not Zaptel?

    I haven't setup SIP Trunks yet either, would they be setup the same way?

    here is my buttons.cfg file:

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

    here is what my chan_dahdi.conf file looks like though

    signalling = fxs_ks
    callerid = asreceived
    group = 0
    context = from-zaptel
    channel = 1
    callerid= Free For All Incorporated
    group= 0
    context = default

    signalling = fxs_ks
    callerid = asreceived
    group = 1
    context = from-zaptel
    channel = 2
    callerid=
    group=
    context = default

    signalling = fxs_ks
    callerid = asreceived
    group = 2
    context = from-zaptel
    channel = 3
    callerid=
    group=
    context = default

    signalling = fxs_ks
    callerid = asreceived
    group = 3
    context = from-zaptel
    channel = 4
    callerid=
    group=
    context = default

    group = 4
    echocancel = yes
    signalling = fxo_ks
    context = Incoming
    channel = 5
    callerid = Free For All Incorporated
    group = 4
    context = default

    group = 4
    echocancel = yes
    signalling = fxo_ks
    context = Incoming
    channel = 6
    callerid = Free For All Incorporated
    group = 4
    context = default

    group = 4
    echocancel = yes
    signalling = fxo_ks
    context = Incoming
    channel = 7
    callerid = Free For All Incorporated
    group = 4
    context = default

    group = 4
    echocancel = yes
    signalling = fxo_ks
    context = Incoming
    channel = 8
    callerid = Free For All Incorporated
    group = 4
    context = default

    I am certain I have misconfigured the buttons.cfg file, any help would be appreciated.

  6. Tue Nov 10 16:08:15 2009

    Thanks now my FOP2 works.

  7. Tue Nov 10 16:06:03 2009
    jmituzas posted in Buttons.

    Thank you very much, I was ready to blow up the machine. Well that explains why I have no action buttons. And thanks for the guide. Though my problems were solved once I logged in with a user that their extension I was able to see . Guess the jokes on me :lol: :lol: I suppose I will be purchasing the full version, so I can view all of our extensions.

  8. Tue Nov 10 14:22:42 2009
    jmituzas posted in Buttons.

    I have this same problem, I have just tried what you requested but still no buttons within FreePBX panel or fop2. I would really like to beable to get these features working... (recording, transfers, etc.) but so far this has been nothing but frustration from the installation, I have noticed that I (for some reason)after installing it didn't create an fop2 database. Do I need a database for these buttons to show up? Where is the .sql file to create a databse, or is it a .php file?

    I would really like to beable to get something to show up, besides the extensions.

  9. Mon Nov 9 16:43:19 2009
    jmituzas started the conversation Installed NO FOP2 Database! (solved).

    I have noticed this when I have gotten the error for the phonebook (An error has occurred Unkown field: picture).
    I then loged into mysql and showdatabases; and there is no fop2 database. I reinstalled fop2 thinking that may have been the problem but still did not install a database.

    Is there something wrong with the install from tarball instructions?

    Or did I mess something else up? Any help trying to get fop2 database setup within the new asteriskNOW!(2.5) Freepbx(2.6) environment (centOS-5) would be greatly appreciated.