TIPS CID Superfecta and OpenCNAM

Patrick Lupien

New Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
Hello All,
I've got my system up and running, has been trouble free for serveral months.

I decided to install CID Superfecta so I can callerID displayed on my XBMC build.

I also have a professional account at OpenCNAM.

Here's the trouble.

In CID-Superfecta I've got only OpenCNAM enabled, but it won't return any results.
My SID and AUTH are filled in correctly, but I can't get any results.

Using https://api.opencnam.com/v2/phone/+XXXXXXXXXXX?format=json&account_sid=XXX&auth_token=XXX
I get proper results, but trying to DEBUG I only get:

Searching OpenCNAM ...
name lookup timed out
CNAM not found.
result
scrollup.gif
took 3.0035 seconds.

No matter what I set the timeout to, this is all I get.

Any help would be great.

Thank You
 

james

Guru
Joined
Oct 18, 2007
Messages
374
Reaction score
38
Try to curl from the server.
Code:
curl https://api.opencnam.com/v2/phone/ XXXXXXXXXXX?format=json&account_sid=XXX&auth_token=XXX
 

james

Guru
Joined
Oct 18, 2007
Messages
374
Reaction score
38
Your URL is not the same as their URL.
PHP:
https://api.opencnam.com/v2/phone/" . $thenumber . "?format=pbx&ref=possa&account_sid=".$run_param['Account_SID']."&auth_token=".$run_param['Auth_Token'];

Code:
https://api.opencnam.com/v2/phone/NNNNNNNNNN?format=pbx&ref=possa&account_sid=XXX&auth_token=xxx
 

Patrick Lupien

New Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
Odd... It's the URL that was given on their site.

Doing the command with the link I gave gets a reply with proper data.

Editing the Code you posted (with my creditials and a known good number) doesn't get a response.
 

Patrick Lupien

New Member
Joined
Jun 11, 2014
Messages
6
Reaction score
0
This is all I get. Timeouts are set to 20 seconds.
Manually doing a CURL lookup works great.

Any Ideas?
 

Attachments

  • Debug Output.png
    Debug Output.png
    8.3 KB · Views: 11

Trimline2

Guru
Joined
May 23, 2013
Messages
524
Reaction score
96
As a test, ping opencnam.com and place it in your hosts file. I had an issue a while back and had to do this. Since I moved to another box, I don't recall what caused the dns lookup to fail, but it was with opencnam.
 

Members online

No members online now.

Forum statistics

Threads
25,812
Messages
167,763
Members
19,241
Latest member
bellabos
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