rbyerjr

Member

Last active 9 years ago

  1. 10 years ago
    Mon Sep 8 22:35:29 2014

    apologies for the duplication

  2. Mon Sep 8 22:34:55 2014

    Hello again.
    Maybe I have missed the purpose of the fop2 manager. When I review functions-custom.php I see code attempting to decipher extensions, trunks, queues, etc from asterisk conf files. I would *never* have expected or anticipated the fop2 manager to decipher extensions, and queues, etc from my asterisk conf files. I wrote my own php code to generate the button.cfg file(s) for this very purpose. We generate our own fop2 configuration from our asterisk conf files.

    I was just questioning whether the fop2 manager should be able to add/edit the button cfg files that we have already created. I was anticipating that the fop2 manager should be able to show the button objects that already exist.

    Similarly, when I create a user in the fop2 manager, I am anticipating it is a fop2 user, that logs into fop2. I wouldn't anticipate have to reload asterisk for that to happen, since it has nothing to do with asterisk -- in least the way I am thinking now.

    Based on your responses, I am beginning to realize that possibly the intent of the fop2 manager is not so much to manage the display objects in fop2, but to manage (i.e. create/modify/delete) the objects in asterisk ?

    MAYBE what I should do is take the php script that I use to generate my own button files and fit it into the functions-custom.php.

    Thanks for the tip on the plugins chmod. that is certainly easy enough. Should have thought of that myself.

  3. Mon Sep 8 22:34:14 2014

    Hello again.
    Maybe I have missed the purpose of the fop2 manager. When I review functions-custom.php I see code attempting to decipher extensions, trunks, queues, etc from asterisk conf files. I would *never* have expected or anticipated the fop2 manager to decipher extensions, and queues, etc from my asterisk conf files. I wrote my own php code to generate the button.cfg file(s) for this very purpose. We generate our own fop2 configuration from our asterisk conf files.

    I was just questioning whether the fop2 manager should be able to add/edit the button cfg files that we have already created. I was anticipating that the fop2 manager should be able to show the button objects that already exist.

    Similarly, when I create a user in the fop2 manager, I am anticipating it is a fop2 user, that logs into fop2. I wouldn't anticipate have to reload asterisk for that to happen, since it has nothing to do with asterisk -- in least the way I am thinking now.

    Based on your responses, I am beginning to realize that possibly the intent of the fop2 manager is not so much to manage the display objects in fop2, but to manage (i.e. create/modify/delete) the objects in asterisk ?

    MAYBE what I should do is take the php script that I use to generate my own button files and fit it into the functions-custom.php.

    Thanks for the tip on the plugins chmod. that is certainly easy enough. Should have thought of that myself.

  4. Fri Sep 5 22:12:35 2014

    We have gotten our arms around fop2 and the chrome fop2 extension at this point. We update to 2.28 earlier this week as well.
    We looked into fop2 manager a bit today and have some questions/issues.

    • Our environment can be best described as plain, vanilla asterisk, as there is no freePBX involved.
    • In our demo environment, we have about 4 users, 10 extensions, 2 queues, 4 Ringgroups, etc setup. probably around 25 buttons. configured into the fop2 and button cfg files.
    • When we go into the fop2 manager,we see traces of the users and buttons we created in the cfg files, but by no means many of them.
    • If we create a user in the manager interface, we see if created, but we can't log in using that info, and it is not reflected back in our cfg files -- it is presumably resident in the mysql tables.

    How do the two environments (flat cfg files and the fop2manager database) inter-relate ? Does it require a freePBX based install ?
    If so, then OK, we will stop here with the manager and just focus on fop2. Otherwise, can you give us some hints as to how to diagnose the issue(s).

    last question for this round:
    I went into plugins directory and clicked an Install button for Busy Counter. I see a fast-moving red box in the lower right that says "Error extracting plugin archive(2)" almost immediately. This occurs on any and all of them.

    Please advise next steps when convenient.
    Thanks,
    Ron

  5. Thu Jul 31 13:50:13 2014
    rbyerjr posted in call Pickup not working.

    fixed.
    The problem was....
    usage error on my part. :oops:
    Apologies

    rb

  6. Thu Jul 31 00:14:16 2014
    rbyerjr posted in call Pickup not working.

    I was trying to be complete in my original post, but missed those 2 points:

    1. the FOP user in question has ALL permissions.
    2. There is no evidence of anything going on in the CLI, with full debug, verbose, and manager debug set. It looks like it is not doing anything. But, when I do the *8 from the phone, then the call picks up.

    I will try the js console on the browser. That's a good idea

    Ron

  7. Wed Jul 30 20:00:11 2014
    rbyerjr started the conversation call Pickup not working.

    the call pickup button on the FOP screen is not picking up the call.
    Details:

    • FOP 2.27, Asterisk 1.8, Centos x64 6.4
    • all associated extensions are in the same callgroup and pickupgroup (1)
    • inbound call to other extension ignores the Call Pickup button, but if call pickup (*8) is done on the handset, it works.

    - tried enabling & disabling no_pickupmark, and pickupchan, neither had any effect, commented them both back out.

    - When perusing the full debug logs on asterisk, I see the Pickup when it is does from the handset. I see nothing, error or otherwise, of any attempt to call Pickup from the fop2 screen. I was running manager debug as well.

    Any thoughts on how to progress this ?

    Thanks,

  8. Thu Jul 24 21:09:12 2014
    rbyerjr started the conversation download.php.

    Attempting to play and download voicemails now that I have fop2 running on the right machine.

    I can see a list of the vm's when I click on the envelope icons for an extension. At that point I get a screen that show Play and download icons, but neither do anything. I've read enough to recognize the issue as a likely php session issue, and when I invoke download.php directly from the browser, i get "no way".
    But, before that, I'm seeing

    [Thu Jul 24 14:49:06 2014] [error] [client 96.56.230.76] PHP Notice: Undefined offset: 1 in /var/www/html/fop2/download.php on line 116

    in my http error log, which corresponds to this line:

    list ($getid,$filename2) = preg_split("/!/",$_REQUEST['file'],2);

    Assuming that I've passed the following URL:
    ...../fop2/download.php?file=/var/spool/asterisk/default/102/INBOX/msg0000.WAV

    I'm seeing the entire $_REQUEST['file'] in $getid, and $filename2 is what is undefined. I've been searching far and wide for what the pattern "/!/" represents, the closest thing I've come to is a negative lookahead.

    So I wrote a little test program:
    $lines = file("test.out");
    $foo = array( "","" );

    foreach ($lines as $a) {
    echo "$a\n";
    $foo = preg_split("/!/",$a,2);
    echo "$foo[0] ... $foo[1] ..\n";
    }
    echo "done\n";

    And fed it these filenames:

    /var/foo/bar/test
    foo/bar/test/gooey/
    /var/www/html/fop2/foo.bar

    and it produced the same result:

    /var/foo/bar/test

    PHP Notice: Undefined index: 1 in /home/agiletel/test.php on line 8
    /var/foo/bar/test
    ... ..
    foo/bar/test/gooey/

    PHP Notice: Undefined index: 1 in /home/agiletel/test.php on line 8
    foo/bar/test/gooey/
    ... ..
    /var/www/html/fop2/foo.bar

    PHP Notice: Undefined index: 1 in /home/agiletel/test.php on line 8
    /var/www/html/fop2/foo.bar

    done

    I'm running php 5.1.6, and there doesn't seem to be any dependence on a particular version of PHP here.

    Any thoughts ? I need to get past this so I can get back to grappling with the session issue, which I think is unrelated (and not likely to be solved by this either)

    Ron

  9. Thu Jul 24 17:29:10 2014

    Never mind {again}

    found it.

    Port 4445 in firewall rules.

    Ron

  10. Thu Jul 24 00:21:17 2014

    .

View more