CID superfecta & http query

Trying to use CID superfecta and found two issues. Because the OpenCNAM doesn’t seem so open anymore, I decided to give a try with that works over http.

  1. So, CID superfecta doesn’t seem to support simple http queries. Very weird, is it correct or I’m doing something wrong??? It’s pretty basic thing, I’d be surprised if it doesn’t work.
  2. Trunk_provided module works, but the option “Discard Numeric” when enabled, does nothing. One trunk passes a number again as a CID name and it goes thru, while shouldn’t.

OK found the module - it’s called Send to URL.
However, for some reason it doesn’t work.
Setup is:[NUMBER]&out=text
(where xxx is my valid key. This URL returns a correct name as a clear text)


Debug is on and set at level: 3
The Original Number: 480686xxxx
The Scheme: Default
Debugging Enabled, will not stop after first result

Scheme Asked is: Default
The DID is: 5555555555
The CNUM is: 480686xxxx
The CNAME is: CID Superfecta!

Starting scheme Default
Executing Asterisk Phonebook
Searching Asterisk Phonebook ...
not found
result took 0.0039 seconds.

Executing Trunk Provided
Looking for Trunk Provided Caller ID ...
We're in Debug/Test mode, this module only runs on live calls.
result took 0.0004 seconds.

Executing PhoneSpamFilter
Searching PhoneSpamFilter...
Orignal Raw Returned Data:

Found 0
Not a SPAM caller
result took 0.5020 seconds.

Executing Send to URL
Searching Send to URL ...
result took 0.0004 seconds.

Executing Telco Data
Searching Telco Data ... : 480686xxxx
Orignal Raw Returned Data:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE root SYSTEM "areacodexml.dtd">

  <company>COMCAST IP PHONE, LLC</company>

result took 0.1712 seconds.

Converting result to UTF-8
Post CID retrieval processing
Executing Send to URL
Send to URL:
Orignal Raw Returned Data:

This scheme would set the caller id to: PHOENIX, AZ

Returned Result would be:PHOENIX, AZ
result took 1.0781168937683 seconds

So the name is resolved correctly by ezcnam, can tell from the log. But never used. Also, “Send to URL” is executed in like two chunks, once in unreasonably quick timing, then afterwards, with correct data output. If only "“send to url” is selected as a source, result is “No callerid found”.

Tried changing the format to xml and json as well but no luck

The superfecta module Send to URL is only used to send CNAM data to an external API after the name has been found. If you want to query an external URL for name data, the superfecta module to do this is called Regular Expressions 1.

It would be quite easy to provide an EZCNAM module for superfecta, just need to create a file in the style of


Rough crack at a module, see if you can break it: source-EZCNAM.module · GitHub

Thank you for a great support! Everything works!
I hope this would be included in the official release some time, perhaps a simple http query as well?

I’ll commit it along with some other superfecta housekeeping in the near future.

Simple http query is already supported with the “Regular Expressions 1” module.

New source committed

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.