Hello all,
I have an asterisk 1.4 installation on CentOS and Latest version of FreePBX (2.5.1.0)
I have attempted to install a localized php lookup program (Superfecta .php from Nerd Vittles) for incoming CallerID lookup from my SIP account(s).
For whatever reason, the information (CID Name) is not being passed to the internal phones, nor is it showing up in CDR on my logs (the number is, but not the “friendly name”). Only the CID number that is being passed from my provider.
Here is a snippet of my log for the CallerID lookup:
I have replaced the real numbers and names to protect the innocent
Connected to Asterisk 1.4.21.2 currently running on asterisk-pbx (pid = 4535)
Verbosity is at least 3
– Executing [1231231234@from-trunk:1] Set(“SIP/name-b7d08230”, “__FROM_DID=1231231234”) in new stack
– Executing [1231231234@from-trunk:2] Gosub(“SIP/name-b7d08230”, “app-blacklist-check|s|1”) in new stack
– Executing [s@app-blacklist-check:1] LookupBlacklist(“SIP/name-b7d08230”, “”) in new stack
– Executing [s@app-blacklist-check:2] GotoIf(“SIP/name-b7d08230”, “0?blacklisted”) in new stack
– Executing [s@app-blacklist-check:3] Return(“SIP/name-b7d08230”, “”) in new stack
– Executing [1231231234@from-trunk:3] Gosub(“SIP/name-b7d08230”, “cidlookup|cidlookup_6|1”) in new stack
– Executing [cidlookup_6@cidlookup:1] GotoIf(“SIP/name-b7d08230”, “0?cidlookup|cidlookup_return|1”) in new stack
– Executing [cidlookup_6@cidlookup:2] Set(“SIP/name-b7d08230”, “CALLERID(name)=”) in new stack
– Executing [cidlookup_6@cidlookup:3] Set(“SIP/name-b7d08230”, “DB(cidname/1232232234)=”) in new stack
– Executing [cidlookup_6@cidlookup:4] Return(“SIP/name-b7d08230”, “”) in new stack
– Executing [1231231234@from-trunk:4] GotoIf(“SIP/name-b7d08230”, “0 ?cidok”) in new stack
– Executing [1231231234@from-trunk:5] Set(“SIP/name-b7d08230”, “CALLERID(name)=1232232234”) in new stack
– Executing [1231231234@from-trunk:6] NoOp(“SIP/name-b7d08230”, “CallerID is “1232232234” <1232232234>”) in new stack
– Executing [1231231234@from-trunk:7] Set(“SIP/name-b7d08230”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
– Executing [1231231234@from-trunk:8] SetCallerPres(“SIP/name-b7d08230”, “allowed_not_screened”) in new stack
– Executing [1231231234@from-trunk:9] Goto(“SIP/name-b7d08230”, “from-did-direct|3001|1”) in new stack
– Goto (from-did-direct,3001,1)
– Executing [3001@from-did-direct:1] GotoIf(“SIP/name-b7d08230”, “0?ext-local|3001|1”) in new stack
– Executing [3001@from-did-direct:2] Macro(“SIP/name-b7d08230”, “user-callerid|”) in new stack
– Executing [s@macro-user-callerid:1] Set(“SIP/name-b7d08230”, “AMPUSER=1232232234”) in new stack
– Executing [s@macro-user-callerid:2] GotoIf(“SIP/name-b7d08230”, “0?report”) in new stack
– Executing [s@macro-user-callerid:3] ExecIf(“SIP/name-b7d08230”, “1|Set|REALCALLERIDNUM=1232232234”) in new stack
– Executing [s@macro-user-callerid:4] Set(“SIP/name-b7d08230”, “AMPUSER=”) in new stack
– Executing [s@macro-user-callerid:5] Set(“SIP/name-b7d08230”, “AMPUSERCIDNAME=”) in new stack
– Executing [s@macro-user-callerid:6] GotoIf(“SIP/name-b7d08230”, “1?report”) in new stack
– Goto (macro-user-callerid,s,11)
– Executing [s@macro-user-callerid:11] GotoIf(“SIP/name-b7d08230”, “0?continue”) in new stack
– Executing [s@macro-user-callerid:12] Set(“SIP/name-b7d08230”, “__TTL=64”) in new stack
– Executing [s@macro-user-callerid:13] GotoIf(“SIP/name-b7d08230”, “1?continue”) in new stack
– Goto (macro-user-callerid,s,20)
– Executing [s@macro-user-callerid:20] NoOp(“SIP/name-b7d08230”, “Using CallerID “1232232234” <1232232234>”) in new stack
– Executing [3001@from-did-direct:3] GotoIf(“SIP/name-b7d08230”, “1?skipdb”) in new stack
– Goto (from-did-direct,3001,5)
Can anyone give me direction on why this is not working?
I have applied the CIDLOOKUP to my inbound routes
when I run the script from a web browser (which is loaded locally on asterisk) I can query a number and it returns a valid named response, but it is not showing up on my phones…
Does anyone have experience with this problem?
Thank You