NEW: CallerID Superfecta Addition

SShrivastava

New Member
Joined
Nov 14, 2008
Messages
15
Reaction score
0
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?
 
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.
 
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?
 
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:
 
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....
Jeff
 
Please try the following and report back. Thanks.

HTML:
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
 
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

PHP:
echo $name;
with

PHP:
echo  strip_tags($name);
 
Still nice to learn something new every day!! Thanks. Fixed!
 
Just a quick FYI, I just downloaded the souped up file from this post and it still has:

Code:
echo $name;

in the whitepages.com section.
 
Last edited by a moderator:
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.
 
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.
 

Attachments

Your fixes have been applied to the download archive. Thanks!
 
Anywho's programmers have been at it again! Changes attached for enhanced version. Just extract and rename file to callerid.php
 

Attachments

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.
 
Before this discussion gets started again <grin>, here is the same file in unix format.
 

Attachments

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:

HTML:
#!/bin/bash
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
./cid
 

Members online

No members online now.

Forum statistics

Threads
26,688
Messages
174,412
Members
20,259
Latest member
Fadeek86
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top