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. Support
  3. Asterisk to read the caller ID from FOP's phonebook

Asterisk to read the caller ID from FOP's phonebook

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 86 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.
  • S
    S
    stuntshell
    wrote on last edited by
    #1

    Hi,
    Is it possible to make asterisk read the information from the phonebook within FOP2?
    I found another thread that states it's already done [1], but it does not work for me.
    I would like to the caller ID to show on my IP phones.
    I'm using FreePBX to manage my system (which comes with it's own phonebook and works), I'm running 1.4.36 with the latest FOP2 2.22.
    I just don't want to have two different places to manage my phonebook entries.

    Thanks,
    [1] View Post 364&p=1323&hilit=caller+id#p1323

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

      Hi,

      There is an article in the blog explainging how to do that:

      http://www.fop2.com/blog/lookup_source

      Best regards

      1 Reply Last reply
      0
      • S
        S
        stuntshell
        wrote on last edited by
        #3

        Very well, this works perfectly!

        Thanks a lot.

        1 Reply Last reply
        0
        • H
          H
          henny
          wrote on last edited by
          #4

          How can i tweak the sql query to return the company name as well as the name because we have entries that only have company and no name in them.

          thanks

          Ian

          1 Reply Last reply
          0
          • N
            N
            nicolas
            wrote on last edited by
            #5
            SELECT CONCAT(company, ' - ',firstname,' ',lastname) AS name FROM visual_phonebook WHERE phone1 LIKE CONCAT('%',SUBSTRING('[NUMBER]',-8)) OR phone2 LIKE CONCAT('%',SUBSTRING('[NUMBER]',-8)) ORDER BY LENGTH(CONCAT(phone1,phone2)) LIMIT 1
            
            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