Member
Last active 9 years ago
apologies for the duplication
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.
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.
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.
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
fixed.
The problem was....
usage error on my part. :oops:
Apologies
rb
I was trying to be complete in my original post, but missed those 2 points:
I will try the js console on the browser. That's a good idea
Ron
the call pickup button on the FOP screen is not picking up the call.
Details:
- 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,
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
Never mind {again}
found it.
Port 4445 in firewall rules.
Ron