Undefined index: pin

  1. 10 years ago

    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.

  2. 9 years ago

    admin

    1 Dec 2014 Administrator

    That is a warning, not an error. It should not affect behaviour of the manager itself. The pin is extracted from the voicemail.conf file, most probably that file is empty or not used, but the manager should work the same. You can disable php warnings from display also.

    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,

  3. Hi,

    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.

  4. Also I've tried /usr/local/fop2/fop2_server --test and it's ok !
    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 ?

  5. admin

    4 Dec 2014 Administrator

    To start fop2 in debug mode, you must stop the background running fop2 process first, you do not have any permission issue, just that your fop2 server is still running:

    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,

  6. I wasn't aware about this procedure. When I execute debug mode, I still have "unable to initialize libusb: -99" error but it generates logs well.
    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,

  7. admin

    5 Dec 2014 Administrator

    The libusb is another warning that does not affect anything at all, you can disregard it. If you do not see status, then you either have buttons misconfigured. I am online at the live help now if you want to chat.

  8. Hi,

    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.

  9. admin

    9 Dec 2014 Administrator

    FOP 2.29 is out in beta, including the fop2manager with support for elastix 3 auto configurations. I have not had the chance to actually try it in production, having only access to elastix db schemas and not much else.

    http://download.fop2.com/fop2-2.29-centos-i386.tgz
    http://download.fop2.com/fop2-2.29-centos-x86_64.tgz

  10. Edited 9 years ago by lacava

    I tried this new version. It's a newer implementation, seems all buttons are taken directly from database. But already have some troubles : my users have been erased and even I creat the ame user, I don't find my buttons back in the panel.
    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.

  11. admin

    10 Dec 2014 Administrator

    Hi,

    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,

  12. Edited 9 years ago by lacava

    I'll try all of this later and come back to you to look at this together. For the moment I've downgraded on 2.28 and focus on it. Thanks.

    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.

  13. For the queue button I found the reason. Between brackets, it wait the name of the queue used instead of extension like this : [QUEUE/hotline]. Now it works fine.

    Thanks

  14. Hi Admin,

    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.

  15. admin

    15 Dec 2014 Administrator

    Not sure what you mean exactly. If you want to move a waiting call out of a queue, you have to drag it out to another extension (enableDragTransfer=true in presence.js). However, if you do that, the call will be marked as ABANDONED for queue reporting applications, so use with care if you need statistics about them.

  16. What I want is when I answer a call in a queue, I have to redirec this call to the right person so I want to transfer it to a button. It seems, this have to be done by the phone and not by the interface.

  17. admin

    17 Dec 2014 Administrator

    There are some issues when your queue members are Local channels where a transfer fails, but that is an asterisk issue as the command that fop2 sends to the manager is correct. Try an attendant transfer instead and see how it performs, you can hangup as soon as you do the attendant transfer and it will behave similar to a blind transfer.

or Sign Up to reply!