atlantia

Member

Last active 12 years ago

  1. 12 years ago
    Mon Jun 18 21:03:57 2012
    atlantia started the conversation FOP2 buttons_astcli modification for trunks.

    Thanks to help from nicolas we were able to modify the buttons_astcli.sh file to declare non numeric SIP peers as trunks. Previously if you ran the script prior to defining the trunks themselves, the script would intepret them as regular peers (and ignore the trunks manually entered).

    Please note this only works for systems where the peer name is numeric and the trunks are not numeric

    Also change the MANAGERSECRET to match your fop2 AMI password.

    #!/bin/bash
    MANAGERUSER=fop2
    MANAGERSECRET=CHANGETOYOURPASSWORD
    MANAGERHOST=localhost
    function isNumeric(){ [ "$(echo $*|grep -v "[^0-9]")" ];}
    /usr/local/fop2/astcli -u $MANAGERUSER -s $MANAGERSECRET -h $MANAGERHOST "sip show peers" |  sed '/Monitored/d' |sed '/Name\/username/d' | sort | while read LINEA
    do
    EXTEN=`echo $LINEA | cut -d\/ -f 1`
    EXTEN=`echo $EXTEN | awk '{ print $1}'`
    CONTEXT=`./astcli -u $MANAGERUSER -s $MANAGERSECRET -h $MANAGERHOST "sip show peer $EXTEN" | grep Context | cut  -d: -f 2 | sed 's/ //g'`
    CIDNAME=`./astcli -u $MANAGERUSER -s $MANAGERSECRET -h $MANAGERHOST "sip show peer $EXTEN" | grep Callerid | cut  -d: -f 2 | cut -d\< -f 1 | sed 's/ "//g' | sed 's/"//g'`
    MAILBOX=`./astcli -u $MANAGERUSER -s $MANAGERSECRET -h $MANAGERHOST "sip show peer $EXTEN" | grep Mailbox | cut  -d: -f 2 | sed 's/ //g'`
    TYPE="type=trunk"
    LABEL="label=$EXTEN"
    EXTENSION="channel=SIP/$EXTEN"
    MAIL="server=0"
    CON=""
    $(isNumeric $EXTEN) && TYPE="type=extension" && LABEL="label=$CIDNAME" && EXTENSION="extension=$EXTEN" && MAIL="mailbox=$MAILBOX" && CON="context=$CONTEXT"
    echo "[SIP/$EXTEN]"
    echo $TYPE
    echo $EXTENSION
    echo $LABEL
    echo $MAIL
    echo $CON
    echo
    done
  2. Wed Jun 13 17:53:53 2012

    More issues.

    Did a full revoke and reinstall: removed /usr/local/fop2 /var/www/html/fop2 and /etc/init.d/fop2 + make in the 2.26 directory.

    When I try to register my serial I get:

    License Activation
    ------------------

    Enter your serial code: REDACTED

    Serial code not available for version 2.26.

    You can register only version 2.20.

    I will email you my current serial, it was purchased in January and the previous version was 2.24.

    Scott

  3. Wed Jun 13 17:28:35 2012

    It should be noted the serial code is less than a year old.

  4. Wed Jun 13 17:27:58 2012

    Nicolas,

    Me again. Trying to upgrade to 2.26 to resolve an issue with Chrome on this same system.

    Getting the error below. Is there a way to specify the interface while upgrading? I have my OPTIONS set in sysconig, not sure how to pass that variable to make.

    Thanks

    eth0: error fetching interface information: Device not found
    Can't get info from ifconfig: at script/fop2_server.pl line 6878.

    Upgrade Aborted. License reactivation failed.

    Be sure you have internet access from this server,
    and that your code is not older than a year.

    If your license has expired, you must renew it in order to upgrade,
    but you can still use your current FOP2 version for as long as you want.

    If you already bought an upgrade code please run the following command:

    server/fop2_server --upgrade

    If the upgrade is successful run make again to retry the installation.

  5. Tue Feb 7 18:52:59 2012

    Working now, thanks nicolas.

  6. Mon Feb 6 22:27:10 2012

    Any way to do this via the init script?

    Edit: Also, this is still not working. It starts but when I try to login it acts as though the backend is down (attempting login...).

    Here is what I get at the CLI

    [root@phone fop2]# ./fop2_server -i eth3
    Flash Operator Panel 2 - White Label Version.
    Use of uninitialized value in hash element at script/fop2_server.pl line 5834.
    Use of uninitialized value in numeric gt (>) at script/fop2_server.pl line 5846.
    Use of uninitialized value in numeric gt (>) at script/fop2_server.pl line 5846.
    Use of uninitialized value in concatenation (.) or string at script/fop2_server.pl line 5857.
    Use of uninitialized value in concatenation (.) or string at script/fop2_server.pl line 5857.'

    Edit: this is with iptables disabled for testing, so it's not a port issue afaik.

  7. Mon Jan 23 21:20:57 2012

    I have registered FOP2 using:

    /usr/local/fop2/fop2_server --register -i eth3

    and entered my code, to which I received "registration successful"

    however when I try to start fop2_server directly I get

    [root@phone fop2]# ./fop2_server
    eth0: error fetching interface information: Device not found
    Can't get info from ifconfig: at script/fop2_server.pl line 6220.

    This machine's ifconfig (with IP address changed)

    ifconfig
    eth3 Link encap:Ethernet HWaddr F2:73:87:A9:B1:23
    inet addr:2.6.3.03 Bcast:2.255.255.255 Mask:255.255.255.224
    inet6 addr: fe80::g173:67ff:fea9:b123/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:1313656 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1248081 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:274011187 (261.3 MiB) TX bytes:312163579 (297.7 MiB)

    eth4 Link encap:Ethernet HWaddr D2:8C:C9:0C:FC:48
    inet addr:10.10.10.250 Bcast:10.255.255.255 Mask:255.255.0.0
    inet6 addr: fe80::d108c:c6ff:fe0c:fb48/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:7843966 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1220403 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:894205378 (852.7 MiB) TX bytes:260356468 (248.2 MiB)

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:4077 errors:0 dropped:0 overruns:0 frame:0
    TX packets:4077 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2344468 (2.2 MiB) TX bytes:2344468 (2.2 MiB)

  8. 13 years ago
    Wed Jun 1 00:39:41 2011
    atlantia started the conversation Whisper - Agent cannot hear original caller during.

    Running asterisk 1.8.2

    When a manager "whispers" an agent, the agent can no longer hear the original callee/caller until the whisper is ended.

    System details below:

    Asterisk 1.8.2
    Asterisk manager rights set to "all"

    [admin]
    secret = XXXXXX
    deny=0.0.0.0/0.0.0.0
    permit=127.0.0.1/255.255.255.0
    read = all
    write = all

    FOP2 Version 2.2.0 (paid license - Basic)

    Any ideas on what can be causing this?

  9. Tue Feb 15 23:24:07 2011

    When I start FOP2 via /use/local/fop2/fop2_server -X 15, the trunk status in my test works fine (when I call in I see the channel)

    When I start FOP2 via init script, it starts, I can access the portal and login, but no changes exist to my trunk list when calling in.

    This is on CentOS5, using FOP2.20

    Also: Just bought a third copy of FOP2 for the same server due to the issue below:

    I noticed when trying to remove the old registered license (we are upgrading and reinstalling software on the asterisk server) from the previous version, the command does not work. I assume this is a new feature in 2.20, can you tell me how to recall the old licenses for future use?

    Thanks in advance

  10. Mon Nov 8 23:27:24 2010
    atlantia started the conversation Windows Resize, space fill.

    Currently I am only using FOP2 on a system to monitor 3 conference rooms. When I resize the browser window the entire display area is taken into consideration and attempts to change the size of the single button I have, instead of resizing statically.

    See:

    http://imgur.com/XhoGk&kYRsu

    and

    http://imgur.com/XhoGk&kYRsul

    Is there any way to set it up so fop2 doesn't resize as the browser is resized? this would allow me to have just the visible information open in the window on a desktop, instead of the extra empty space.

    Thanks

View more