Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Plugins
  3. Connect contacts/phonebook Yeastar S50 to FOP2 database

Connect contacts/phonebook Yeastar S50 to FOP2 database

Scheduled Pinned Locked Moved Plugins
17 Posts 3 Posters 369 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V
    V
    Victor_Maxx
    wrote on last edited by
    #3

    Hi Nicolas,
    Clear explanation, I will ask them.. What is in your opinion the best (and quickest) way to fill the fop2 phonebook?
    Kind regards,
    Victor

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #4

      Hi,

      You have an export/import options in the sandwich menu in the contacts window, you can import a CSV file with a format like this:

      firstname,lastname,company,address,email,phone1,phone2
      John,Doe,Enron,Some Address,some@email.com,5551234,12345678
      Mary,Poppins,Astra Corp,Other Address,other@email.net,12650348,
      
      1 Reply Last reply
      0
      • V
        V
        Victor_Maxx
        wrote on last edited by
        #5

        Super.. Thanks, I will give it a try! 😃

        1 Reply Last reply
        0
        • V
          V
          Victor_Maxx
          wrote on last edited by
          #6

          Hi Nicolas,
          I've created an Excel (O365) File with the above fields, but saving it as .csv doesn't work. At the import FOP2 gives a warning that there are no field to import. Do you have an tutorial to create such an .csv from Excel?
          Thanks
          Victor

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #7

            Hi,

            I posted a valid example of a file in my first reply, check your csv from excel, verify that separator fields are like the example, if not convert them, add the header on the first line indicating each field, and try again.

            1 Reply Last reply
            0
            • V
              V
              Victor_Maxx
              wrote on last edited by
              #8

              Hello Nicolas,
              The problem was that Excel used ";" as a seperator instead of ",", now the csv file could be imported. Importing them into the 'Contacts' was successfull, 132 records added but none of the imported contacts are shown in the contacts list!

              1 Reply Last reply
              0
              • N
                N
                nicolas
                wrote on last edited by
                #9

                Do you have the 1st header line as in the example?

                1 Reply Last reply
                0
                • V
                  V
                  Victor_Maxx
                  wrote on last edited by
                  #10

                  This is the first line:
                  firstname,lastname,company,Address,email,Phone1,Phone2,Other Number

                  1 Reply Last reply
                  0
                  • N
                    N
                    nicolas
                    wrote on last edited by
                    #11

                    You might want to check if you have entries in the visual_phonebook mysql table, with the command

                    mysql -u root -p asterisk -e "select count(*) from visual_phonebook"
                    

                    You need to enter mysql root password to get the result.. does it show 132 records or similar? or zero?

                    1 Reply Last reply
                    0
                    • V
                      V
                      Victor_Maxx
                      wrote on last edited by
                      #12

                      This command gives this error:
                      Error 1049 (42000): Unknown database 'asterisk'

                      1 Reply Last reply
                      0
                      • N
                        N
                        nicolas
                        wrote on last edited by
                        #13
                        mysql -u root -p fop2 -e "select count(*) from visual_phonebook"
                        
                        1 Reply Last reply
                        0
                        • V
                          V
                          Victor_Maxx
                          wrote on last edited by
                          #14

                          Hello Nicolas,
                          This is the output from that command:
                          count(*)
                          1
                          This is the user which I entered manually in fop2..
                          So, it seems that the import didn't succeed regardless of the succesfull import of 132 records (green) message

                          1 Reply Last reply
                          0
                          • N
                            N
                            nicolas
                            wrote on last edited by
                            #15

                            Hi,

                            Can you send me in private your csv file so I can try it myself?

                            1 Reply Last reply
                            0
                            • V
                              V
                              Victor_Maxx
                              wrote on last edited by
                              #16

                              Hello Nicolas,
                              Did you receive the file?
                              Victor

                              1 Reply Last reply
                              0
                              • J
                                J
                                Jay
                                wrote on last edited by
                                #17

                                Hello Nicolas,
                                How are you?
                                I'm sorry I have a concern why I cannot login my server http://ipaddress/fop2 with credentials created on FOP2 manager http://ipaddress/fop2/admin, I check database and it's added there. The only way to login is to use the details I added in file /usr/local/fop2/fop2.cfg with format like 123:123:all, I have been struggling for this case for some days but still didn't figure it out, hope you can assist me on this

                                1 Reply Last reply
                                0

                                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                With your input, this post could be even better 💗

                                Register Login
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                Powered by NodeBB Contributors
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups