SOLVED Spam Phone blocker and CNAM caching

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
I am very annoyed by the incessant Spam calls to my home phone. I ported my phone number to an IncrediblePBX last script on Centos 6.
I followed the instructions from http://nerdvittles.com/?p=27313.
The caller gets the prompt to press 5. But then same caller on subsequent calls still has to press 5. The caller phone number does not make it into the Phonebook either.

It would be nice if I can make it work as intended. Any ideas what I did wrong?

Asterisk CLI shows

Connected to Asterisk 13.22.0 currently running on pbx (pid = 2452)
[2019-04-28 18:30:30] ERROR[2551][C-0000000c]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("pbx.localdomain", "(null)", ...): Name or service not known
[2019-04-28 18:30:30] WARNING[2551][C-0000000c]: acl.c:835 resolve_first: Unable to lookup 'pbx.localdomain'
[2019-04-28 18:30:49] ERROR[2551][C-0000000d]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("pbx.localdomain", "(null)", ...): Name or service not known
[2019-04-28 18:30:49] WARNING[2551][C-0000000d]: acl.c:835 resolve_first: Unable to lookup 'pbx.localdomain'
[2019-04-28 18:30:57] WARNING[1025][C-0000000d]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input:
+1406750xxxx> 0
^
[2019-04-28 18:30:57] WARNING[1025][C-0000000d]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
[2019-04-28 18:30:57] ERROR[1025][C-0000000d]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("pbx.localdomain", "(null)", ...): Name or service not known
[2019-04-28 18:30:57] WARNING[1025][C-0000000d]: acl.c:835 resolve_first: Unable to lookup 'pbx.localdomain'
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,227
Check that CallerID Superfecta is running and that Asterisk Phonebook is at the top of the lookup list.
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
Check that CallerID Superfecta is running and that Asterisk Phonebook is at the top of the lookup list.
I moved the Asterisk Phonebook to the top (in the article screen shoot it is listed second). Better but not yet able to recognize a prior caller as valid, you still have to press 5 everytime.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,206
Reaction score
5,227
The Asterisk CLI will tell you what is happening.
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
hmm,
Asterisk CLI shows superfecta working but then fails. I included the last few lines from the CLI.

[2019-04-29 19:54:49] WARNING[22105][C-0000000a]: ast_expr2.fl:470 ast_yyerror: ast_yyerror(): syntax error: syntax error, unexpected '+', expecting $end; Input:
+1406750xxxx > 0
^
[2019-04-29 19:54:49] WARNING[22105][C-0000000a]: ast_expr2.fl:474 ast_yyerror: If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables
[2019-04-29 19:54:49] ERROR[22105][C-0000000a]: netsock2.c:305 ast_sockaddr_resolve: getaddrinfo("pbx.localdomain", "(null)", ...): Name or service not known
[2019-04-29 19:54:49] WARNING[22105][C-0000000a]: acl.c:835 resolve_first: Unable to lookup 'pbx.localdomain'
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
that fixed the problem of not populating the phone book.
I have couple questions.

I do have Skyetel trunks which provide CNAM, I have a TrueCNAM account and OpenCNAM account. I know the superfecta goes top to bottom. What is the proper order for those? My thought is this order: PhoneBook, Asteridex, Trunk, OpenCNAM and TrueCNAM. I am not sure about the last 2.

On TrueCNAM you documented 2 ways to enter credentials. One through the SSH terminal by editing a file, another way is through the TrueCNAM GUI. I guess i should not do both, which one is the correct way?
 

krzykat

Telecom Strategist
Joined
Aug 2, 2008
Messages
3,149
Reaction score
1,238
where do I place TrueCNAM?

Where would you like it to have priority? I'd say definitely after Superfecta Cache, but that is up to you from there. You want your higher levels of authority first. A phone book will always trump everything else, and I like for mine to say "Supreme Leader" for example (LOL). Then you use your cache, because you don't want to pay for looking things up if you are on a pay per lookup basis. Then whoever gives you the next most credible piece of data ... I don't use TrueCNAM, but I use the paid version of OpenCNAM, so that's up to you.
 

Eliad

Active Member
Joined
Aug 13, 2017
Messages
619
Reaction score
127
Where would you like it to have priority? I'd say definitely after Superfecta Cache, but that is up to you from there. You want your higher levels of authority first. A phone book will always trump everything else, and I like for mine to say "Supreme Leader" for example (LOL). Then you use your cache, because you don't want to pay for looking things up if you are on a pay per lookup basis. Then whoever gives you the next most credible piece of data ... I don't use TrueCNAM, but I use the paid version of OpenCNAM, so that's up to you.
Thanks. I have the paid version of TrueCNAM and OpenCNAM, I will try them one at a time and see which one is better.

My understanding of the article was OpenCNAM provides the CNAM data then, TrueCNAM just checks the data against their database looking for spammers. It was not clear if TrueCNAM is actually getting the CNAM itself. Then Ward instructions placed TrueCNAM before OpenCNAM and that got me confused on my assumptions.
 

shdwkeeper

Member
Joined
Jun 4, 2020
Messages
50
Reaction score
3
@wardmundy Does anyone know if this works for Incredible PBX 2020? I don't want to mess anything up if the article above wont work.
 
Last edited:

Members online

Forum statistics

Threads
25,824
Messages
167,825
Members
19,248
Latest member
BKhumalo
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.
Top