CID Superfecta + FreePBX 2.9

ajmorris

New Member
Joined
Jan 8, 2008
Messages
19
Reaction score
0
I also tried the direct link to the callerip.php and nothing gets returned in the browser, just a blank page.

Andy
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Run http://<webserver>/admin/modules/superfecta/bin/callerid.php?debug=yes&thenumber=9512594723

check the output of /var/logs/httpd/error_log AND /var/logs/httpd/access_log

I realized you've done this before but keep checking please!

@ajmorris it doesn't make sense that you'd see no output anywhere (including error_log, access_log & the link above). Something is wrong with your configuration, you'd either see an error in error_log or an error on the screen
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Futhermore. Unless I work with you both one-on-one on your boxes there is nothing more I can do.

This is how I developed endpoint manager and how I was able to get so far ahead, because I physically logged into people's boxes and developed.
 

ajmorris

New Member
Joined
Jan 8, 2008
Messages
19
Reaction score
0
Okay I ran that link with the debug option and all I get is
Detected FreePBX version is at least 2.9 on the page nothing else and no error in the http logs. I do see another log that states something with the admin/config.php is wrong so I will investigate.

Andy
 

ustelephone

Member
Joined
Sep 21, 2010
Messages
122
Reaction score
0
In my last post I indicated that while the Superfecta was working, all of my calls were dropping. I disabled lookup source on all inbound trunks as I've been too busy to work on this and I've adapted to life without CNAM.

I did all of the recent module upgrades for 2.9 today and decided to have another go at it. I enabled Superfecta on one inbound route and called the number from a POTS line. I made 3 test calls all with the same result. Superfecta does provide the correct CNAM; I'm using my phonebook and white pages as a source).

The problem, as bizarre as it may sound, is that the call continued ringing down every line on my phone (SPA941). The call appeared on line 1, as I answered it rang on line 2 and 3, and also rang the other phone in the follow me group which are single line phones. When I answered the call on line 1 there was no audio, same on the rest of the ringing line. On the POTS I was dialing out from all I heard was silince. I disabled the caller id lookup source and everything is woking normally again.

I'm not asking anyone for a solution as much as wanting to share my experience. It's not all that important to me considering other disasters I'm dealing with right now. I'm happy to provide further debugging info if anyone want a look at it.
 

ustelephone

Member
Joined
Sep 21, 2010
Messages
122
Reaction score
0
No luck

I replaced the file and ran the debug. Called ID is appearing on the debug fine, but my incoming calls still fail.

I have an almost idle system. What's the best command for me to capture the call details and post them?

I'm a dunce with Linux, but could this be some sort of a permission issue?
 

gladroger

New Member
Joined
Sep 17, 2009
Messages
13
Reaction score
0
I have upgraded to soon to Freepbx 2.9, after that I realised that Callerid wasnt working anymore and breaking calls. I updated it to 2.2 and replaced the callerid.php as linked here. However, when I enable Superfecta in the inbound trunks, the calls are not going through to all phones, it calls on the Snom phones and the Zoiper Softphones but not on the Cisco phones.

The callerid is right but I can't have it enable since it doesnt go through to Cisco phones. When I have it disabled, the phones all work.

I think it is the same problem as ustelephone has.

[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 401
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 401
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 402
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 402
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 403
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 403
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 404
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 404
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 405
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 405
[2011-04-06 09:44:17] WARNING[21123] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
[2011-04-06 09:44:17] WARNING[21123] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
[2011-04-06 09:44:17] DEBUG[21123] chan_iax2.c: prepending 8 to prefs
[2011-04-06 09:44:17] DEBUG[21123] chan_iax2.c: prepending 8 to prefs
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 702
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 702
[2011-04-06 09:44:17] DEBUG[21123] chan_iax2.c: prepending 8 to prefs
[2011-04-06 09:44:17] DEBUG[21123] chan_iax2.c: prepending 8 to prefs
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 703
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- Called 703
[2011-04-06 09:44:17] WARNING[21123] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
[2011-04-06 09:44:17] WARNING[21123] app_dial.c: Unable to create channel of type 'SIP' (cause 3 - No route to destination)
[2011-04-06 09:44:17] VERBOSE[4946] logger.c: -- Call accepted by MYIPNUMBER (format alaw)
[2011-04-06 09:44:17] VERBOSE[4946] logger.c: -- Call accepted by MYIPNUMBER (format alaw)
[2011-04-06 09:44:17] VERBOSE[4946] logger.c: -- Format for call is alaw
[2011-04-06 09:44:17] VERBOSE[4946] logger.c: -- Format for call is alaw
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- IAX2/702-12561 is ringing
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- IAX2/702-12561 is ringing
[2011-04-06 09:44:17] VERBOSE[4952] logger.c: -- Call accepted by MYIPNUMBER (format alaw)
[2011-04-06 09:44:17] VERBOSE[4952] logger.c: -- Call accepted by MYIPNUMBER (format alaw)
[2011-04-06 09:44:17] VERBOSE[4952] logger.c: -- Format for call is alaw
[2011-04-06 09:44:17] VERBOSE[4952] logger.c: -- Format for call is alaw
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- IAX2/703-4384 is ringing
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- IAX2/703-4384 is ringing
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- SIP/403-08b1a3f8 is circuit-busy
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- SIP/403-08b1a3f8 is circuit-busy
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- SIP/404-08b09b68 is circuit-busy
[2011-04-06 09:44:17] VERBOSE[21123] logger.c: -- SIP/404-08b09b68 is circuit-busy
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
[2011-04-06 09:44:17] VERBOSE[4937] logger.c: -- Got SIP response 400 "Bad Request" back from MYIPNUMBER
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
The only code difference I did was exactly what the lead FreePBX developers told me to do so unfortunately I am unable to help.

I have upgraded to soon to Freepbx 2.9, after that I realised that Callerid wasnt working anymore and breaking calls. I updated it to 2.2 and replaced the callerid.php as linked here. However, when I enable Superfecta in the inbound trunks, the calls are not going through to all phones, it calls on the Snom phones and the Zoiper Softphones but not on the Cisco phones.

The callerid is right but I can't have it enable since it doesnt go through to Cisco phones. When I have it disabled, the phones all work.
 

gladroger

New Member
Joined
Sep 17, 2009
Messages
13
Reaction score
0
Thanks tm1000, I get this error in httpd error_log... When trying to reach the callerid directly.

[Wed Apr 06 12:21:24 2011] [error] [client MYIPNUMBER] Wed, 06 Apr 2011 12:21:24 +0200 - Unable to connect to manager 127.0.0.1: ():

And in the access log
MYIPNUMBER - maint [06/Apr/2011:12:21:24 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=9512594723 HTTP/1.1" 200 1 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
hmmmmmmmm!

Thanks! Now I have something to look into I think. :D

Thanks tm1000, I get this error in httpd error_log... When trying to reach the callerid directly.

[Wed Apr 06 12:21:24 2011] [error] [client MYIPNUMBER] Wed, 06 Apr 2011 12:21:24 +0200 - Unable to connect to manager 127.0.0.1: ():

And in the access log
MYIPNUMBER - maint [06/Apr/2011:12:21:24 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=9512594723 HTTP/1.1" 200 1 "-" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24"
 

gladroger

New Member
Joined
Sep 17, 2009
Messages
13
Reaction score
0
I checked the code in callerid.php.. I dont have a php-asmanager.php file in the common directory that callerid is requesting?

//connect to the asterisk manager
require_once('../../../common/php-asmanager.php');
$astman = new AGI_AsteriskManager();
 

Ste73

New Member
Joined
May 7, 2010
Messages
3
Reaction score
0
I have the same problem (i think)

if i debug it works!

if i call ... it does not wor

if i open web page /admin/modules/superfecta/bin/callerid.php?thenumber=xxx ... i have a blank white page.

in access_log i have this, while in error_log nothing


127.0.0.1 - freepbx [07/Apr/2011:22:40:46 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=xxxxx HTTP/1.1" 200 - "-" "asterisk-libcurl-agent/1.0"
192.168.1.165 - freepbx [07/Apr/2011:22:40:58 +0200] "GET /admin/config.php?type=setup&display=superfecta HTTP/1.1" 200 22221 "http://voip.direte.it/admin/config.php?display=cidlookup&itemid=9" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
192.168.1.165 - freepbx [07/Apr/2011:22:41:00 +0200] "GET /admin/config.php?display=superfecta&scheme=base_Default HTTP/1.1" 200 29322 "http://voip.direte.it/admin/config.php?type=setup&display=superfecta" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
192.168.1.165 - freepbx [07/Apr/2011:22:41:01 +0200] "POST /admin/modules/superfecta/sources.php HTTP/1.1" 200 49966 "http://voip.direte.it/admin/config.php?display=superfecta&scheme=base_Default" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
192.168.1.165 - freepbx [07/Apr/2011:22:41:15 +0200] "POST /admin/config.php?display=superfecta&scheme=base_Default HTTP/1.1" 200 22263 "http://voip.direte.it/admin/config.php?display=superfecta&scheme=base_Default" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
127.0.0.1 - freepbx [07/Apr/2011:22:41:28 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=xxxxx HTTP/1.1" 200 - "-" "asterisk-libcurl-agent/1.0"
127.0.0.1 - freepbx [07/Apr/2011:22:42:59 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=xxxxx HTTP/1.1" 200 - "-" "asterisk-libcurl-agent/1.0"
127.0.0.1 - freepbx [07/Apr/2011:22:43:37 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=xxxxx HTTP/1.1" 200 - "-" "asterisk-libcurl-agent/1.0"
192.168.1.165 - freepbx [07/Apr/2011:22:45:39 +0200] "GET /admin/modules/superfecta/bin/callerid.php?thenumber=xxxxx HTTP/1.1" 200 - "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
192.168.1.165 - - [07/Apr/2011:22:45:40 +0200] "GET /favicon.ico HTTP/1.1" 404 288 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.28 (KHTML, like Gecko) Chrome/12.0.725.0 Safari/534.28"
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Download the newer version of callerid.php and then check the errors

(PS it's still working fine on my 3 - 2.9 machines)
 

rcoates

New Member
Joined
Apr 5, 2011
Messages
25
Reaction score
2
I'm having a similar problem. The CNAME looks fine in the DEBUG function on the web page. But calls go immediately to voice mail instead of ringing the phone. The output from asterisk -r shows brackets in front of the CNAME. The phone doesn't like the invalid CNAME and rejects the call.

Example of CNAME returned:
CIDNAME:[4590 Name
(Note: 4590 is a Caller Name prefix added because of the incoming route)
CALLINFO=] [541xxxxxxx

This is after installing the updated callerid.php file from this thread. I'm running Superfecta 2.2.4 and FreePBX 2.9
 

rcoates

New Member
Joined
Apr 5, 2011
Messages
25
Reaction score
2
I have everything updated and followed the detailed instructions to check everything. Thank you for the detailed checklist.

When I call into the system with Superfecta enabled, the calls go directly to voice mail. I believe this is because the CNAM info is formatted improperly and the telephone (Grandstream GFX-2000) rejects the call because of the improper formatting.

What appears to be happening is that instead of

Executing [cidlookup_11@cidlookup:1] Set("SIP/rcoates2-b7709d70", "CALLERID(name)=NAMEFOUND") in new stack

Instead, there is a CR/LF (hex 0D, hex 0A) in between the (name)= and the NAMEFOUND

Executing [cidlookup_11@cidlookup:1] Set("SIP/rcoates2-b7709d70", "CALLERID(name)=
NAMEFOUND") in new stack

this invalid character is causing the call to be rejected by the phone causing SIP response 400 "Bad Request"
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
Interesting. So if I understand you correctly, step 3 works fine for you and there is no <cr> in the browser displayed CNAM. If so that points to a bug in FreePBX CallerID module and not Superfecta. Anyone else have something to add?

Lorne

I'm looking into this.
 

tm1000

Schmoozecom INC/FreePBX
Joined
Dec 1, 2009
Messages
1,360
Reaction score
78
I haven't tried this yet and it definitely won't break anything.

But

Go to /var/www/html/admin/modules/cidlookup

Open up functions.inc.php.

Go to the very bottom and remove this "?>". It doesn't need to be there and you can see after it there is a new line.

When files are included in php they are actually included as straight text unless the <?php or ?> tags are declared. Therefore anything after a closing tag is interpreted as html. EG carriage returns.

I can't guarantee this will work. But it's a quick two second look.
 

rcoates

New Member
Joined
Apr 5, 2011
Messages
25
Reaction score
2
Correct -- it shows up fine in the Debug mode on the web page. Whether this points to a bug in the FreePBX module or not I cannot say.
 

Members online

Forum statistics

Threads
25,783
Messages
167,515
Members
19,203
Latest member
frapu
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