Caller ID Lookup

I am running FreePBX 2.5.1.0, Asterisk 1.4.21.2 from a PiAF install. Is there a module or code or something that I can use to display CID from landlines/cell phones? VoIP? Thanks!
–EDIT–
In my question I was asking if I could get the names from callers that were calling from landlines, cell, or VoIP into my VoIP line. I do not have a landline or cell hooked to my * machine.

to display CID you need to be receiving it from your telco provider. The CID Lookup module is used to add a matching NAME to the NUMBER received.

I am running all VoIP and I do get CID from my provider. I do not have a POTS or any other “hard-wired” tel line. What sources could I use or how could I convince Vonage to send Caller ID over my Softphone Account? What I was asking was names, sorry if that was unclear.

I said that wrong. I already get numbers, but no names. ALSO SEE EDIT OF TOPIC QUESTION

All the voip providers with which i am familiar are not able to send CID names.

You maybe used to seeing CID with names being sent by your POTS provider, but that is usually taken from their own internal Database. Voip calls, on the other hand, are often routed via may servers/providers and as such rarely does one pass on the CID name.

Works great with PIF —

http://bestof.nerdvittles.com/applications/callerid/

Got the CIDSuperfacta working. Thanks phonebuff! Only thing is, it does not work on Grandstream BT-200 phones due to the limited display, but it works great on X-Lite. Thanks so much!

I disagree with that because I have a Vonage ATA seperate from my * server, and it sends names to my phone perfectly fine.

I thought it was working, but it is not looking up the numbers through the asteridex. I have several numbers in the asteridex typed in exactly as they show up without caller id. For example: A number of a local hotel is 8439466400. It would show up on the screen as 18439466400 w/o caller ID. With caller ID, it shows Hampton Inn and Suites Ocean F that is from another DB because that is not in Asteridex. However, if I call from my home phone, 843******* it just shows PAWLEYS ISLAND, SC LAND LINE; and it IS IN the asteridex but it does not show.Do I need to do something special to it?

If you want the data from the same database the providers (such as Vonage uses as the one post mentioned)see if your SIP provider can deliver CNAME service. If not there are several independent CNAME providers. They charge per database dip.

You live on Pawley’s Island? I used to fly out of John’s Island in 1994-1995.

Scott

Yes, I love Pawleys! Anyway, my problem was that I had names in the asteridex and when I called into the PBX, it did not show those names. It just showed the city and state and the phone type;Pawleys Island, SC Land Line. Is it not interfacing correctly?

Sounds like the caller id does not match the asteridex format, so your look up is not completing and you are falling through to one of the subsequent CNAM sources.

Look carefully at a trace… An be sure that the Asteridex feature is enabled in the script.

// Setting the variables below to 1 activates each of the respective searches.
// The phonebook searches are executed in the order shown.
// When a match is bound during a search, the callerid script ends with that result.
// E.g. if there is a match in AsteriDex, then the Google and AnyWho searches aren't executed.

$AsteriDex = '0' ;   <=== Is this on ???
$Google = '1' ;
$AnyWho = '1' ;
$WhitePagesCAD = '1';

I am showing

$AsteriDex = ‘1’ ;
$Google = ‘1’ ;
$AnyWho = ‘1’ ;
$WhitePagesCAD = ‘1’;

By a trace, do you mean watch the CLI when I place a call?

No,

Watch CLI when you receive a call… look for __FROM_DID just before the Gosub to the look up routine…


Found it. What I meant by place a call was that I would call the system from an external line.
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “__FROM_DID=s”) i n new stack
– Executing [[email protected]:2] Gosub(“SIP/18433144226-09770ba0”, “app-blacklist- check|s|1”) in new stack
– Executing [[email protected]:1] LookupBlacklist(“SIP/18433144226-0977 0ba0”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/18433144226-09770ba0”, “0 ?blacklisted”) in new stack
– Executing [[email protected]:3] Return(“SIP/18433144226-09770ba0”, “” ) in new stack
– Executing [[email protected]:3] Gosub(“SIP/18433144226-09770ba0”, “cidlookup|cidl ookup_2|1”) in new stack
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “CALL ERID(name)=Pawleys Island, SC Land Line”) in new stack

– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “__FROM_DID=s”) i n new stack
– Executing [[email protected]:2] Gosub(“SIP/18433144226-09770ba0”, “app-blacklist- check|s|1”) in new stack
– Executing [[email protected]:1] LookupBlacklist(“SIP/18433144226-0977 0ba0”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/18433144226-09770ba0”, “0 ?blacklisted”) in new stack
– Executing [[email protected]:3] Return(“SIP/18433144226-09770ba0”, “” ) in new stack
– Executing [[email protected]:3] Gosub(“SIP/18433144226-09770ba0”, “cidlookup|cidl ookup_2|1”) in new stack
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “CALL ERID(name)=Pawleys Island, SC Land Line”) in new stack

Couple of things,

Why are you using the context ext-did instead of the from-pstn ?

Run it again and look for the [[email protected]: line and see what it thinks the REALCALLERIDNUM is … I think you will see 11 digits and when you check Asteridex it will have 10. If not, you should take this over to the PiAF site and post for Ward or one of the developers.

I am not using a PSTN. I have a VoIP Line for the only incoming line on the machine as well as the only outgoing line. Does this only work for PSTN? From my perspective, it looks as if it does not have a number to begin with for the lookup, but when I call a phone on my system, (Grandstream BudgeTone 200) it shows the 1843XXXXXXX (Numbers replaced for privacy). That is what I have in the Asteridex, the 1843XXXXXXX. This is the entire log from the first call in to hangup.

– Executing [[email protected]:1] NoOp(“SIP/18433144226-09770ba0”, “Received incoming SIP connection from unknown peer to 18433144226”) in new stack
– Executing [[email protected]:2] Set(“SIP/18433144226-09770ba0”, “DID=18433144226”) in new stack
– Executing [[email protected]:3] Goto(“SIP/18433144226-09770ba0”, “s|1”) in new stack
– Goto (from-sip-external,s,1)
– Executing [[email protected]:1] GotoIf(“SIP/18433144226-09770ba0”, “1?from-trunk|18433144226|1”) in new stack
– Goto (from-trunk,18433144226,1)
– Executing [[email protected]:1] NoOp(“SIP/18433144226-09770ba0”, “Catch-All DID Match - Found 18433144226 - You probably want a DID for this.”) in new stack
– Executing [[email protected]:2] Goto(“SIP/18433144226-09770ba0”, “ext-did|s|1”) in new stack
– Goto (ext-did,s,1)
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “__FROM_DID=s”) in new stack
– Executing [[email protected]:2] Gosub(“SIP/18433144226-09770ba0”, “app-blacklist-check|s|1”) in new stack
– Executing [[email protected]:1] LookupBlacklist(“SIP/18433144226-09770ba0”, “”) in new stack
– Executing [[email protected]:2] GotoIf(“SIP/18433144226-09770ba0”, “0?blacklisted”) in new stack
– Executing [[email protected]:3] Return(“SIP/18433144226-09770ba0”, “”) in new stack
– Executing [[email protected]:3] Gosub(“SIP/18433144226-09770ba0”, “cidlookup|cidlookup_2|1”) in new stack
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “CALLERID(name)=Pawleys Island, SC Land Line”) in new stack
– Executing [[email protected]:2] Return(“SIP/18433144226-09770ba0”, “”) in new stack
– Executing [[email protected]:4] ExecIf(“SIP/18433144226-09770ba0”, “0 |Set|CALLERID(name)=18432372699”) in new stack
– Executing [[email protected]:5] SetMusicOnHold(“SIP/18433144226-09770ba0”, “custom”) in new stack
– Executing [[email protected]:6] Set(“SIP/18433144226-09770ba0”, “__MOHCLASS=custom”) in new stack
– Executing [[email protected]:7] Ringing(“SIP/18433144226-09770ba0”, “”) in new stack
– Executing [[email protected]:8] Set(“SIP/18433144226-09770ba0”, “FAX_RX=disabled”) in new stack
– Executing [[email protected]:9] Set(“SIP/18433144226-09770ba0”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [[email protected]:10] SetCallerPres(“SIP/18433144226-09770ba0”, “allowed_not_screened”) in new stack
– Executing [[email protected]:11] Goto(“SIP/18433144226-09770ba0”, “ivr-2|s|1”) in new stack
– Goto (ivr-2,s,1)
– Executing [[email protected]:1] Set(“SIP/18433144226-09770ba0”, “MSG=custom/IVR-Allison”) in new stack
– Executing [[email protected]:2] Set(“SIP/18433144226-09770ba0”, “LOOPCOUNT=0”) in new stack
– Executing [[email protected]:3] Set(“SIP/18433144226-09770ba0”, “__DIR-CONTEXT=default”) in new stack
– Executing [[email protected]:4] Set(“SIP/18433144226-09770ba0”, “_IVR_CONTEXT_ivr-2=”) in new stack
– Executing [[email protected]:5] Set(“SIP/18433144226-09770ba0”, “_IVR_CONTEXT=ivr-2”) in new stack
– Executing [[email protected]:6] GotoIf(“SIP/18433144226-09770ba0”, “0?begin”) in new stack
– Executing [[email protected]:7] Answer(“SIP/18433144226-09770ba0”, “”) in new stack
– Executing [[email protected]:8] Wait(“SIP/18433144226-09770ba0”, “1”) in new stack
== Parsing ‘/etc/asterisk/manager.conf’: Found
== Parsing ‘/etc/asterisk/manager_additional.conf’: Found
== Parsing ‘/etc/asterisk/manager_custom.conf’: Found
== Manager ‘admin’ logged on from 127.0.0.1
– Executing [[email protected]:9] Set(“SIP/18433144226-09770ba0”, “TIMEOUT(digit)=3”) in new stack
– Digit timeout set to 3
– Executing [[email protected]:10] Set(“SIP/18433144226-09770ba0”, “TIMEOUT(response)=15”) in new stack
– Response timeout set to 15
– Executing [[email protected]:11] Set(“SIP/18433144226-09770ba0”, “__IVR_RETVM=”) in new stack
– Executing [[email protected]:12] ExecIf(“SIP/18433144226-09770ba0”, “1|Background|custom/IVR-Allison”) in new stack
– <SIP/18433144226-09770ba0> Playing ‘custom/IVR-Allison’ (language ‘en’)
== Manager ‘admin’ logged off from 127.0.0.1
== Spawn extension (ivr-2, s, 12) exited non-zero on ‘SIP/18433144226-09770ba0’
– Executing [[email protected]:1] Hangup(“SIP/18433144226-09770ba0”, “”) in new stack

Okay,

How the call arrived and what you label your context has no relation, I always handle my inbound calls through the same context, and it’s been from-pstn for a long time.

See patches and addtnl long up sources here…
http://pbxinaflash.com/forum/showthread.php?t=2919

If you still need help ask in that thread…

Sorry, I don’t have a better answer…