Undefined index: pin
Hello,
I have installed fop2 on Elastix 3.0. I have upgraded some packages on the elastix since.
To connect to the manager of fop2, I modified all necessary files (/usr/local/fop2/fop2.cfg, /var/www/html/fop2/config.php, /var/www/html/fop2/admin/config.php) with the same credentials in Elastix and I can connect then.
My problem is when I'm in the Users or Buttons panel, I have a message error at the top of my window :
/var/www/html/fop2/admin/functions-astdb.php (line 14)
Undefined index: pin
/var/www/html/fop2/admin/functions-astdb.php (line 14)
Undefined index: pin
To attempt to solve this problem, I modified credentials in /var/www/html/fop2/admin/functions-astdb.php but always the same.
There is an overview in attach file.
Thanks for your help.
I have installed fop2 on Elastix 3.0. I have upgraded some packages on the elastix since.
To connect to the manager of fop2, I modified all necessary files (/usr/local/fop2/fop2.cfg, /var/www/html/fop2/config.php, /var/www/html/fop2/admin/config.php) with the same credentials in Elastix and I can connect then.
My problem is when I'm in the Users or Buttons panel, I have a message error at the top of my window :
/var/www/html/fop2/admin/functions-astdb.php (line 14)
Undefined index: pin
/var/www/html/fop2/admin/functions-astdb.php (line 14)
Undefined index: pin
To attempt to solve this problem, I modified credentials in /var/www/html/fop2/admin/functions-astdb.php but always the same.
There is an overview in attach file.
Thanks for your help.
Comments
I can add some error catching on that file, but as I said, and undefined variable does not prevent the software from working as it should.
best regards,
Voicemail were not enabled in my extensions may be it was the problem.
As I saw, this warning don't block the behaviour of the software. I can create my users, connect with them and see my buttons.
I would like to know where I can disable this warning.
About buttons, I have another troubles. If you want me to create another discussion or continuing here just tell me, thanks.
I had already create buttons on a organization and it works fine, when I give a call my buttons changes state.
I have updated some packages (framework,...) then I have create a new organization on my Elastix 3.0.
In this organization I have added some extensions. I have created configurations file with buttons for each extensions and users in manager and made modifcations in all necessary files (fop2.cfg, ...).
The problem is when I connect with one of the new extensions, I can see all buttons created but when I give a call, the button don't change state. I have searching for but don't find any solutions.
Thanks for your help.
But when I want to activate debug it displays this :
/usr/local/fop2/fop2_server -X 15
unable to initialize libusb: -99
bind: Adresse déjà utilisée at script/fop2_server.pl line 11204
As shown in another discussion, may be there is a read and write permission issue but don't really see on which files I have to apply it.
All in fop2 repository (usr/local and var/www/html/fop2) ? manager.conf ?
service fop2 stop
cd /usr/local/fop2
script capture.log
./fop2_server -X 15
(do your tests)
ctrl-C
exit
service fop2 start
By the way, today I was working on updating the fop2 manager to take configurations for elastix 3. Try to catch me on the live help and I can give you a link to the beta version so you can test it out.
As for the button not showing activity, most probably the channel name does not match.
As for the warning, edit config.php and set DEBUG to zero.
Best regards,
I have attached the result in this reply for you to get an overview.
It's a good news. I will be happy to test this beta together. I'm available all the day so I'll try to contact you as soon as the live help will be online.
What I saw in logs seems correct but may be I'm missing something.
I also corrected the warning.
Thanks very much for all.
ps : I noticed than buttons 'dial' and all the others doesn't works too. Think it's linked with the fact that status isn't modified.
Regards,
Sorry for my late.
I observed it doesn't afefct anything too.
Starting from your point, I carefully observed the configuration of my file and I had not seen some of my buttons do not have the correct syntax. [SIP/XXXX]
After modification, it works as agreed.
I can continue the preparation of the module with queues.
Thank you very much for your help.
ps: if it still stands, I am always available to see together for the beta for elastix 3.
http://download.fop2.com/fop2-2.29-centos-i386.tgz
http://download.fop2.com/fop2-2.29-centos-x86_64.tgz
For the moment I prefer to stay on the 2.28. I keep this new version for the future.
However, I found another problems in the panel when I'm logged with an user.
When I select an extension button and click on Dial button, it calls only my extension and I can't dial another one.
Also, I defined a queue, it works fine, I declare the button as [QUEUE/...] but don't see any call in wait state on the button and I have Agents and Waiting call at 0.
Thanks for your help.
Multi tenant users and buttons are handled differently in the database than single tenant users, that is probably why your users were removed. Multi tenant has another side effect, you must login as that particular tenant to fop2 using the ?context=domain.com directive in order to log in. In my tests, the fop2 manager worked fine in this scenario, but no tenant buttons won't show up. In any case, you can try to catch me on the live help if you can give me access to your system to work on it directly.
As for your problems, when you dial, your phone always rings first, once you pickup, then it will dial the destination number. So, there is no problem there at all. Just answer and the destination number will be dialed.
Regarding queue buttons, the queue name is incorrect if you do not see anything, or it could also be that you did not define an extension=xxx and context=yyy to the [QUEUE/xxx] button definition.
Best regards,
I try this this morning and it works as you described to me. Didn't think the scenario worked like this. Thanks again.
My case is a little specific, may it cause some conflict. I explain it in more details. I have a standard number SN and a temporary number TN, both are extensions, SN is registered on a phone and not TN. I use this TN from others extensions to put the call in the queue which will call SN. Here are my conf files :
extensions_custom.com :
exten => 5555,1,Answer()
exten => 5555,n,agi(googletts.agi,"Please wait.",en,any)
exten => 5555,n,Queue(hotline,td,,,30)
exten => 5555,n,Voicemail(SIP/5845_myorg.fr)
exten => 5555,n,Hangup()
queues.conf :
[hotline]
musiconhold=default
strategy=ringall
timeout = 20
retry = 15
maxlen = 0
wrapuptime= 15
joinempty = no
leavewhenempty = yes
eventwhencalled = yes
member => SIP/5845_myorg.fr
buttoncall.cfg :
[others extensions]
...
[QUEUE/5555_myorg.fr]
type=queue
label=Support
extension=5555
context=myorg.fr-from-internal
[QUEUE/5845_myorg.fr]
type=queue
label=Support2
extension=5845
context=myorg.fr-from-internal
From here, the queue works fine, several calls go in queue but my buttons on the panel don't change state.
As you can see, I created 2 queue buttons for both extensions SN adn TN to see which one is effective.
Did I miss something ?
Thanks for your help.
Thanks
I have another question about Queues in fop2 please.
I would like to know when a call is in queue, how to transfer it from the caller to another extension from the button in the interface ?
I tried to select the button then click on blind transfer but it doesn't work well.
Thanks for your reply.