Labels are correct initially then change to old values

  1. 12 years ago

    We are running:

    [root@proxy200 fop2]# ./fop2_server --version
    fop2_server version 2.26

    We are running FreePBX.

    What happens:

    • We login.
    • All the CORRECT button labels appear for all extensions.
    • The button labels refresh with incorrect values for some extensions (not all).

    What we expect:
    - The correct values will remain for all extensions.

    The test case below is for X3507 which should be labeled "Leslie CA".

    • The extension "Name" in FreePBX is correct (reads "Leslie CA")
    • Click TOOLS -> FOP2 BUTTONS -> Checked X3507 and the LABEL field is correct ("Leslie CA")
    • We have clicked TOOLS -> FOP2 BUTTONS -> REFRESH LABELS -> APPLY CHANGES
    • We have tried 3 separate browsers including Firefox, Chrome and IE
    • We have tried multiple logins to the FOP2 and all exhibit the same problem.
    • Checked voicemail.conf which shows "3507 => XXXX,Leslie CA,,,attach=no|saycid=no|envelope=no|delete=no" and the name is correct in the voicemail profile.
    • Executed /usr/local/fop2/autoconfig-buttons-freepbx.sh which reports the following which appears to be correct:
    [SIP/3507]
    type=extension
    extension=3507
    label=Leslie CA
    mailbox=3507@default
    context=from-internal
    queuecontext=from-queue
    extenvoicemail=*3507@default
    privacy=none
    rtmp=0
    queuechannel=Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300600&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300602&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300603&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300604&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300605&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300607&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500600&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500602&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500603&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500604&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500607&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500608&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500609&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500610&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500612&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500613&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500614
    customastdb=CF/3507
    • also confirmed autoconfig-buttons-freepbx.sh contains: FOP2PLUGIN=1 and executed it again. (Note: The Conferences parse first which seems to be the correct behavior.)
    • Restarted Asterisk
    • Restarted the FOP2
    • Checked mysql:
    mysql> select exten, label from asterisk.fop2buttons where label like '%Leslie%' or exten=3507;
    +-------+-----------+
    | exten | label     |
    +-------+-----------+
    | 3507  | Leslie CA | 
    +-------+-----------+
    1 row in set (0.00 sec)
    
    mysql> 

    The answers I am looking for are:

    • What happens during the loading process where one label is shown then it is overwritten by another label?
    • Where is this secondary (incorrect) information coming from?
    • Why does one button update properly and another button update incorrectly?

    Any information you could provide would be appreciated.

    Thank you!

    We are running:

    [root@proxy200 fop2]# ./fop2_server --version
    fop2_server version 2.26

    We are running FreePBX.

    What happens:

    • We login.
    • All the CORRECT button labels appear for all extensions.
    • The button labels refresh with incorrect values for some extensions (not all).

    What we expect:
    - The correct values will remain for all extensions.

    The test case below is for X3507 which should be labeled "Leslie CA".

    • The extension "Name" in FreePBX is correct (reads "Leslie CA")
    • Click TOOLS -> FOP2 BUTTONS -> Checked X3507 and the LABEL field is correct ("Leslie CA")
    • We have clicked TOOLS -> FOP2 BUTTONS -> REFRESH LABELS -> APPLY CHANGES
    • We have tried 3 separate browsers including Firefox, Chrome and IE
    • We have tried multiple logins to the FOP2 and all exhibit the same problem.
    • Checked voicemail.conf which shows "3507 => XXXX,Leslie CA,,,attach=no|saycid=no|envelope=no|delete=no" and the name is correct in the voicemail profile.
    • Executed /usr/local/fop2/autoconfig-buttons-freepbx.sh which reports the following which appears to be correct:
    [SIP/3507]
    type=extension
    extension=3507
    label=Leslie CA
    mailbox=3507@default
    context=from-internal
    queuecontext=from-queue
    extenvoicemail=*3507@default
    privacy=none
    rtmp=0
    queuechannel=Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300600&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300602&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300603&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300604&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300605&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3300607&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500600&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500602&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500603&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500604&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500607&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500608&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500609&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500610&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500612&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500613&Local/3507@from-queue/n|Penalty=0|MemberName=Leslie CA|StateInterface=SIP/3507|Queue=3500614
    customastdb=CF/3507
    • also confirmed autoconfig-buttons-freepbx.sh contains: FOP2PLUGIN=1 and executed it again. (Note: The Conferences parse first which seems to be the correct behavior.)
    • Restarted Asterisk
    • Restarted the FOP2
    • Checked mysql:
    mysql> select exten, label from asterisk.fop2buttons where label like '%Leslie%' or exten=3507;
    +-------+-----------+
    | exten | label     |
    +-------+-----------+
    | 3507  | Leslie CA | 
    +-------+-----------+
    1 row in set (0.00 sec)
    
    mysql> 

    The answers I am looking for are:

    • What happens during the loading process where one label is shown then it is overwritten by another label?
    • Where is this secondary (incorrect) information coming from?
    • Why does one button update properly and another button update incorrectly?

    Any information you could provide would be appreciated.

    Thank you!

  2. admin

    9 May 2012 Administrator

    Hi,

    Do this:

    asterisk -rx "queue show"

    Do you see "old" names there? If so, that is what you are seeing in fop2.

    Fop2 will rename buttons for queue members to their name if they are queue members. It hat name says "OLD NAME", it will rename buttons to "OLD NAME".

    I think that FreePBX has a bug, in the sense that you can add an extension, then make that extension part of a queue, then you rename the extension, BUT THE QUEUE MEMBER KEEPS THE OLD NAME.

    Check that, to see if that is the case. The solution I think is to remove the member from the queue and add it again. Not related to fop2 at all, fop2 is just exposing the problem.

    Best regards,

  3. I need some time to test when I get back to the office but I suspect you are absolutely correct and that would explain why queue members update properly but queue members do not. It would also explain why the correct name shows up then is overwritten by the queue member.

    Thanks for your help Nicolas! Have a great day!

or Sign Up to reply!