1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. A serious FreePBX vulnerability has been reported. Update your Framework Module immediately. Click here for details.

NEW: CallerID Superfecta Addition

Discussion in 'Add-On Install Instructions' started by SShrivastava, Dec 14, 2008.

  1. SShrivastava New Member

    My CallerID Superfecta has been working great for the last few months, but this past week it has been returning the word "strong" on all incoming calls regardless of number.

    I haven't changed anything, and AsteriDex lookups are disabled on my CallerID Superfecta. Anyone else experiencing this issue?
  2. kmcdaniel Guru

    Are you talking about the bold face on either the word "Land Line" or Cell Phone" I noticed that also..not sure why this is.
  3. tshif Guru

    I haven't looked at the code, but its definitely trying to send some htm inline formatting all of a sudden.

    Could this be coming from the SOURCES that Superfecta is polling for the data?
  4. wardmundy Nerd Uno

    Disable all but one of the sources and try to isolate which provider is causing the problem. Then I'll be glad to wrestle with it. :cool:
  5. jeffmac Guru

    I saw the same thing recently. It looks to me like it WhitePages.com. I tried walking through the code in callerid.php and entering the number that returned that way (7147736403) and WhitePages.com does return the embedded <strong> </strong> formatting....
  6. wardmundy Nerd Uno

    Please try the following and report back. Thanks.

    cd /var/www/html
    wget http://bestof.nerdvittles.com/applications/callerid/callerid.zip
    mv callerid.php callerid.old.php
    unzip  callerid.zip
    rm -f callerid.zip
  7. klingon888 Guru

    Works for me. Thanks!
  8. wardmundy Nerd Uno

    See also this new addition which includes the new patch as well.
  9. TheMole Member

    sorry to bring up an old thread, but just a quick note, there is a php function to strip html tags from text. it might be more efficient, and will eliminate the need to hard code the removal of the strong tag in case the tags change at somepoint.

    on the whitepages.com section, you can replace the

    echo $name;

    echo  strip_tags($name);
  10. wardmundy Nerd Uno

    Still nice to learn something new every day!! Thanks. Fixed!
  11. gregc Guru

    Just a quick FYI, I just downloaded the souped up file from this post and it still has:

    echo $name;
    in the whitepages.com section.
  12. wardmundy Nerd Uno

    Fixed. Thanks. Here's a copy of the new version if you need it.

    Attached Files:

  13. wardmundy Nerd Uno

    AnyWho has changed formats again so you'll need a new version of callerid.php. The new zip file download includes both the older version and the new enhanced version with support for Whocalled.us and Telcodata sites as well as npa validation.

    Just download and unzip the file. Then copy your choice into /var/www/html as callerid.php. Then chmod 775 callerid.php. Special thanks to John Ellis for the new code.
  14. klingon888 Guru

    BTW, the updates to Anywho above only works for numbers with 2 or more listings, i.e. 6103532001. It does not work with numbers returning only 1 listing, i.e. 6103532000. Both search ends with different html tags.

    I've updated the enhanced version with the new changes. Attached.

    Attached Files:

  15. wardmundy Nerd Uno

    Your fixes have been applied to the download archive. Thanks!
  16. klingon888 Guru

    Anywho's programmers have been at it again! Changes attached for enhanced version. Just extract and rename file to callerid.php

    Attached Files:

  17. wardmundy Nerd Uno

    Thanks for everyone's continuing work on this.

    The new zip file download includes just the new enhanced version with support for Whocalled.us and Telcodata sites as well as npa validation.

    Just download and unzip the file. Then copy into /var/www/html as callerid.php. Then chmod 775 callerid.php.
  18. edisoninfo Guru

    Before this discussion gets started again <grin>, here is the same file in unix format.

    Attached Files:

  19. wardmundy Nerd Uno

    Fixed above. Thanks. :eek:opsb:
  20. wardmundy Nerd Uno

    If you happen to use caching with your CallerID lookups in FreePBX, you will notice that entries that are added to AsteriDex after the call has been received will not get "looked up" the next time the person calls. The reason is because the old entry without the CallerID name is still in the cache.

    We wrote a simple bash script to purge the cache once in a while. Here's the code for purgeCIDcache.sh:

    asterisk -rx "database show cidname" | cut -d ' ' -f1,1 | sed -e 's/\// /g' | sed -e 's/ cidname/asterisk -rx \"database del cidname/g' | sed -e 's/$/"/g' > /tmp/cid
    cd /tmp
    chmod +x cid

Share This Page