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

A

atlantia

@atlantia
Unfollow Follow
About
Posts
25
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FOP2 buttons_astcli modification for trunks
    A atlantia
    Support

    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
    

  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

    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


  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

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


  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

    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.


  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

    Working now, thanks nicolas.


  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

    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.


  • eth0: error fetching interface information: Device not found
    A atlantia
    Support

    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)


  • Whisper - Agent cannot hear original caller during
    A atlantia
    Support

    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?


  • FOP2 not reporting status of trunks/phones with init script
    A atlantia
    Support

    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


  • Windows Resize, space fill
    A atlantia
    Support

    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


  • Call Pickup error - no target channel
    A atlantia
    Support

    The original ringing extension was ringing on the first place, is not the pickup button that makes that extension to ring as it was ringing before, right? Maybe pickup stopped working for you, perhaps for the reason I mention (about the call pickup application change in behaviour where you can only pickup calls from the same dialplan context).

    If you use fop2 beta, that nuance is solved by using the PICKUPMARK variable to match the ringing extension disregarding the context

    Ok so I think I am stuck until I can use beta again without being prompted for the code.

    Can someone explain:

    If you use fop2 beta, that nuance is solved by using the PICKUPMARK variable to match the ringing extension disregarding the context

    That way once I can use beta again, I can fix the issue.

    Thanks!


  • Call Pickup error - no target channel
    A atlantia
    Support

    I am working with fop regular now, (beta started force prompting me for a registration code today... bug?)

    when I try to perform a call pickup I get:

    [Jan  5 18:22:54] NOTICE[10311]: app_directed_pickup.c:159 pickup_exec: No target channel found for 191.
        -- Stopped music on hold on SIP/vitel-outbound-0407a0e0
    

    I see in another post this can be a context issue. I have all my extensions listed in "buttons.cfg" in the context "sip" which includes all other contexts in the system.

    If I call another internal extension it works fine.


  • fop2 BETA - Parking lot enable
    A atlantia
    Support

    Another note, I am trying to trouble shoot this now.

    When transfering to the parkinglot asterisk says

    == Parked SIP/vitel-outbound-00a0ff40 on 701@parkedcalls. Will timeout back to extension [sip] 190, 1 in 45 seconds
    -- Added extension '701' priority 1 to parkedcalls
    -- Call Parking Called, lot: 701, timeout: 0, context: sip
    [Jan 3 17:18:16] WARNING[16316]: channel.c:3388 ast_request: No channel type registered for ''
    [Jan 3 17:18:16] NOTICE[16316]: channel.c:3220 __ast_request_and_dial: Unable to request channel /(null)
    [Jan 3 17:18:16] WARNING[16316]: app_parkandannounce.c:200 parkandannounce_exec: PARK: Unable to allocate announce channel.

    Going to try and troubleshoot this a bit today. It's not a huge deal, considering the interface provides the user with the parking lot number in another way when the transfer is done. I imagine based on the code provided Nicolas is trying to get asterisk to also announce the parking lot number.

    I'll let you know.


  • fop2 BETA - Parking lot enable
    A atlantia
    Support

    Cheer!

    Adding:

    [PARK/default]
    extension=700
    context=parkedcalls
    type=park
    Label=Park 700

    to buttons.cfg

    based on the output of the command: ("700", which is the default vanilla asterisk install parking lot number)

    /usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=>" | cut -d= -f1 | sed s/'//g | sed 's/ //g'

    did the trick.

    Thanks for the extra eyes Thomas!

    Hope this helps others. I think that about wraps up my setup with fop2, now to test and implement it on other systems!


  • Visual Phonebook Empty 'no records exist'
    A atlantia
    Support

    Moving the parking enable discussion to View Post 230 (if an admin wants to move the above posts (12 and 13) I can reformat the first thread post to be easier on the eyes.)

    FWIW I understand all this is beta. Nicolas did mention in an email that parking lots queue should show up in beta, but since it isn't I figured I'd troubleshoot on my end.


  • fop2 BETA - Parking lot enable
    A atlantia
    Support

    From various conversations on the forum, and my own in another thread I am creating a new thread. If the admin wants to move the posts in

    View Post 225 (specifically posts 12 and 13)

    to here that would probably keep the forums clean.

    otherwise I'll recap below.

    Atlantia

    Also I am told the parking queue should be shown on the beta above the queues. If you notice in my screenshot http://i.imgur.com/YV58Y.png though, I am connected and sitting in parking lot 701, yet no activity is shown. I also lack the park button mentioned in another post.

    I have entered the code in my extensions.conf as suggested in the README.

    [fop2-park]
    exten => _X.,1,Set(ARRAY(RETURN_EXTENSION,RETURN_CONTEXT)=${CUT(EXTEN,:,1)}\,${CUT(EXTEN,:,2)})
    exten => _X.,n,ParkAndAnnounce(|||${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Goto(${RETURN_CONTEXT},${RETURN_EXTENSION},1)
    exten => _X.,n,Hangup
    

    I assume there may be a parameter in fop2.cfg that enables this feature, but am not clear as to if I missed locating the updated docs in the beta, or more reasonably, they don't exist yet since it is beta. (I understand fully the nature of beta software, so all this is being addressed with a smile).

    Thanks

    Scott

    Thomas

    #PARKSLOT=`/usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=>" | cut -d= -f1 | sed s/\'//g | sed 's/ //g'`
    #if [ "X${PARKSLOT}" != "X" ]; then
    #echo
    #echo "[PARK/default]"
    #echo "extension=${PARKSLOT}"
    #echo "context=parkedcalls"
    #echo "type=park"
    #echo "Label=Park ${PARKSLOT}"
    #echo
    #fi
    

    The parking lot seems to be commented out in autoconfig-buttons-freepbx.sh for some reason, maybe its not ready yet.

    Atlantia

    Not using freepbx either so it wouldn't make much of a difference if it wasn't commented out (althought I see your point).
    I'll have to look at that script and see what it does, maybe it will clue me into what buttons.cfg wants.

    EDIT:

    based on that script you would end up with

    [PARK/default] ; I assume default is the context in which "parkedcalls" exists?
    extension=700
    context=parkedcalls
    type=park
    Label=Park 700

    from:

    /usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=>" | cut -d= -f1 | sed s/\'//g | sed 's/ //g'
    700
    

  • Howto add additional line presence to each extension
    A atlantia
    Support

    This has been discussed before, but per a conversation with Nicolas I wanted to share an extra piece of information about having FOP2 show more than 2 lines

    basically:

    edit

    /var/www/html/fop2/js/presence.js :

    and change:

    var showLines = 2;
    

    to

    var showLines = 4; (Or any number you need)
    

    This works fine, but after line 3 the button on the panel is missing Line X inactive as there is no entry in the language file for it.

    edit:

    /var/www/html/fop2/js/lang_en.js

    and add (below: "lang['line_3_inactive'] = "Line 3 inactive";"

    lang['line_4_inactive']    = "Line 4 inactive";
    

    you can add as many lines this way as you need. Hope this is clear enough.

    KSM

    you will also have to edit


  • Visual Phonebook Empty 'no records exist'
    A atlantia
    Support

    Not using freepbx either so it wouldn't make much of a difference if it wasn't commented out (althought I see your point).
    I'll have to look at that script and see what it does, maybe it will clue me into what buttons.cfg wants.

    EDIT:

    based on that script you would end up with

    [PARK/default] ; I assume default is the context in which "parkedcalls" exists?
    extension=700
    context=parkedcalls
    type=park
    Label=Park 700

    from:

    /usr/sbin/asterisk -rx "dialplan show parkedcalls" | grep "=>" | cut -d= -f1 | sed s/\'//g | sed 's/ //g'
    700
    

  • Visual Phonebook Empty 'no records exist'
    A atlantia
    Support

    I wouldn't do that because all I did in that post was give it a condition that it could never match, just switch debugging off and report it as a bug to Nicolas.

    Will do. Should I start a new thread for the call parking issue?


  • Visual Phonebook Empty 'no records exist'
    A atlantia
    Support

    That fixed it for the most part, with the exception of one remaining error:

    "notice
    /var/www/html/fop2/lib/dblib.php (line 233)

    mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource"

    I am going to use the fix posted by Thomas in a previous forum post

    View Post 143&p=545&hilit=supplied+argument+is+not+a+valid+MySQL+result+resource#p545

    But wanted to give a head's up.

  • 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