"ESL" and "SIP Registration" status modules not showing any information

187 views
Skip to first unread message

Michael Mol

unread,
May 16, 2013, 1:58:36 PM5/16/13
to 2600hz...@googlegroups.com
I haven't gotten either of these two modules to show me information up
to this point...but I wonder if the root cause of that may be related to
other problems I'm encountering.

For clarity, I'm running git HEAD of both blue.box (via
bluebox-latest.rpm, version head-293.gitbc73e25) and FreeSwitch (commit
644720454f53db1a91066c15691a78ee8f746172).

Under Status->ESL, if I click "Reload Sofia", I see "+OK Job-UUID", so I
presume it's communicating with FreeSwitch (even if that looks a little
fishy).

I've verified that the default ESL auth, 'ClueCon' has been replaced by
a stronger password everywhere I've found it:

* /var/www/html/bluebox/bluebox/modules/freeswitch-1.1/config/freeswitch.php
*
/var/www/html/bluebox/bluebox/modules/freeswitch-1.1.1/config/freeswitch.php
* /etc/freeswitch/autoload_configs/event_socket.conf.xml

And that this password matches in every location.

I've verified that freeswitch is listening on 127.0.0.1:8021, and that
ESLHost and ESLPort are so set (127.0.0.1 and 8021, respectively) in
config/freeswitch.php for both the freeswitch-1.1 and freeswitch-1.1.1
modules.

I don't *think* I've missed anything in making sure bluebox knows where
to find freeswitch, and that freeswitch is listening.

signature.asc

Darren Schreiber

unread,
May 16, 2013, 2:00:40 PM5/16/13
to 2600hz...@googlegroups.com
There is a hard-coded folder (because it assumes install via the ISO) for
where FreeSWITCH is located. If you've installed FS from source you need
to seek out that folder.

I am in a meeting right now so can't find it atm but if you grep the blue
box system for /opt/freeswitch/log or /usr/local/freeswitch/log or just
log or something similar, you'll find it.

Just change it.

And a patch to make this configurable would be gladly accepted ;-)

Michael Mol

unread,
May 16, 2013, 2:05:51 PM5/16/13
to 2600hz...@googlegroups.com
OK.

FTR:

find . -type f -print0|xargs -0 grep '/opt/freeswitch'
./preinstall.sh: [ -d '/opt/freeswitch/sounds/' ] &&
sounddir_guess="/opt/freeswitch/sounds"
./preinstall.sh: [ -d '/opt/freeswitch/recordings/' ] &&
recorddir_guess="/opt/freeswitch/recordings"
./preinstall.sh: [ -d '/opt/freeswitch/conf/' ] &&
softswitch_guess="/opt/freeswitch/conf"
./modules/switchboard-1.0/views/switchboard/index.php:
document.getElementById('manual_entry_record').value = "uuid_record " +
inuuid + " start /opt/freeswitch/recordings"+ inuuid + ".wav";
./modules/freeswitch-1.1/plugins/freeswitch.php: '/opt/freeswitch',
./modules/freeswitch-1.1/plugins/freeswitch.php:
'/opt/freeswitch-trunk',
./modules/freeswitch-1.1.1/plugins/freeswitch.php: '/opt/freeswitch',
./modules/freeswitch-1.1.1/plugins/freeswitch.php:
'/opt/freeswitch-trunk',
./modules/backup-1.0/libraries/Backup.php: public static function
export($files = array("/opt/freeswitch/conf"), $sql_dump = "/dump.sql",
$dir_backup_tmp = "/tmp/backup_freeswitch", $dir_backup =
"/tmp/freeswitch/backup") {
./modules/backup-1.0/libraries/Backup.php: public static function
import($backup_file = "", $files = array("/opt/freeswitch/conf"),
$sql_dump = "/dump.sql", $dir_backup_tmp = "/tmp/backup_freeswitch",
$dir_backup = "/tmp/freeswitch/backup") {
signature.asc

Michael Mol

unread,
May 16, 2013, 2:11:59 PM5/16/13
to 2600hz...@googlegroups.com
Ah, er:

find . -type f -print0|xargs -0 grep 'freeswitch/log'
./modules/calls-1.0/config/calls.php:$config['scandir'] =
'/usr/local/freeswitch/log/cdr-csv';
./modules/switchboard-1.0/controllers/switchboard.php:
$logfile = "/usr/local/freeswitch/log/freeswitch.log";
./modules/logviewer-1.0/controllers/logviewer.php: $logfile =
'/usr/local/freeswitch/log/freeswitch.log';
signature.asc

Michael Mol

unread,
May 16, 2013, 2:37:56 PM5/16/13
to 2600hz...@googlegroups.com
So, lines I modified (these are the resulting versions, after modification)

find . -type f -print0|xargs -0 grep 'var/'|grep -v 2013|grep -v
'var/www'|grep modules|grep -v es.js
./modules/callrecord-1.0/libraries/CallRecord.php: return
'/var/lib/freeswitch/recordings/';
./modules/calls-1.0/config/calls.php:$config['scandir'] =
'/var/log/freeswitch/cdr-csv';
./modules/switchboard-1.0/controllers/switchboard.php:
$logfile = "/var/log/freeswitch/freeswitch.log";
./modules/switchboard-1.0/views/switchboard/index.php:
document.getElementById('manual_entry_record').value = "uuid_record " +
inuuid + " start /var/lib/freeswitch/recordings"+ inuuid + ".wav";
./modules/esl-1.1/controllers/esl.php:
if(!file_exists($logfile = '/var/log/freeswitch/freeswitch.log'))
./modules/logviewer-1.0/controllers/logviewer.php: $logfile =
'/var/log/freeswitch/freeswitch.log';

find . -type f -print0|xargs -0 grep '/etc/freeswi'|grep -v 2013
./modules/freeswitch-1.1/plugins/freeswitch.php:
'/etc/freeswitch/freeswitch.xml',
./modules/freeswitch-1.1/config/freeswitch.php:$config['cfg_root'] =
'/etc/freeswitch';
./modules/freeswitch-1.1.1/plugins/freeswitch.php: '/etc/freeswitch',
./modules/freeswitch-1.1.1/config/freeswitch.php:$config['cfg_root'] =
'/etc/freeswitch';

(Really wishing I'd installed via git; a 'git diff' would have been much
easier...)

However, the box under "General System Information" is still empty as
always, as are all of the tabs below. ("Insert Command" offers a text
entry field, but that's it.) And "SIP Registration" still shows nothing
at all.

I suppose my next step is to look at the code and try to see exactly
what's going on.

On 05/16/2013 02:00 PM, Darren Schreiber wrote:
signature.asc

Darren Schreiber

unread,
May 16, 2013, 3:25:18 PM5/16/13
to 2600hz...@googlegroups.com
If those basic items aren't even showing up then it can't establish a
connection with FreeSWITCH

Please tail bluebox/bluebox/logs/<LATEST_LOGFILE_HERE> and see what the
error is - it should be in there. That log file spits out a ton of stuff
so just look for lines indicating an error when you load the ESL page.

Michael Mol

unread,
May 16, 2013, 3:41:02 PM5/16/13
to 2600hz...@googlegroups.com
2013-05-16 14:25:56 -05:00 --- debug:
modules/freeswitch-1.1.1/libraries/FreeSwitch.php[103] (FreeSwitch)
getInstance: FreeSWITCH -> New instance of FreeSwitch telephony driver
created.
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[37]
(dialplan) register: Telephony -> EVAL FreeSwitch::getDialplanSections();
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[56]
(dialplan) register: Telephony -> Added hook for _telephony.conditioning
to call FreeSwitch_CallerId_Driver::conditioning
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[56]
(dialplan) register: Telephony -> Added hook for _telephony.prenumber to
call FreeSwitch_CallerId_Driver::prenumber
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[56]
(dialplan) register: Telephony -> Added hook for _telephony.postroute to
call FreeSwitch_FeatureCode_Driver::postroute
2013-05-16 14:25:56 -05:00 --- debug: system/libraries/Input.php[145]
(Input_Core) __construct: Global GET, POST and COOKIE data sanitized
2013-05-16 14:25:56 -05:00 --- debug: system/libraries/Session.php[90]
(Session_Core) __construct: Session Library initialized
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[56]
(dialplan) register: Telephony -> Added hook for _telephony.prenumber to
call FreeSwitch_Voicemail_Driver::prenumber
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/dialplan.php[56]
(dialplan) register: Telephony -> Added hook for _telephony.postnumber
to call FreeSwitch_Voicemail_Driver::postnumber
2013-05-16 14:25:56 -05:00 --- debug:
modules/auth-1.0/libraries/Auth.php[75] (Auth_Core) __construct: Auth
Library loaded
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/users.php[97]
(users) redirectInvalidUser: Effective user_id 1 - account_id 1
2013-05-16 14:25:56 -05:00 --- debug: bluebox/helpers/users.php[101]
(users) redirectInvalidUser: Authentic user_id 1 - account_id 1
2013-05-16 14:25:56 -05:00 --- error: system/core/Kohana.php[883]
(Kohana) exception_handler: Uncaught PHP Error: Undefined offset: 0 in
file modules/esl-1.1/controllers/esl.php on line 381

So that's this area:

//Do some nifty magic to get freeswitch root path
$confpath = Kohana::config('freeswitch.cfg_root');
preg_match('/.+(?=\/conf$)/', $confpath, $output);
$basepath = $output[0];

(tight fit...anyway, it's the $output[0] line.)

cfg_root is set at
/var/www/html/bluebox/modules/freeswitch-1.1.1/config/freeswitch.php to
'/etc/freeswitch'

Making that "/etc/freeswitch/" (appending a /) doesn't help. Either way,
the output of that preg_match line is an empty array.
signature.asc

Darren Schreiber

unread,
May 16, 2013, 4:33:48 PM5/16/13
to 2600hz...@googlegroups.com
Is there more than one modules/freeswitch* module?

--
Darren Schreiber
CEO / Co-Founder


visit: www.2600hz.com <http://www.2600hz.com/>
sip:dar...@2600hz.com


tel: 415-886-7901




Note: Please do not send support requests to Darren directly. Please use
sup...@2600hz.com

Michael Mol

unread,
May 16, 2013, 4:36:07 PM5/16/13
to 2600hz...@googlegroups.com
Yes, there is modules/freeswitch-1.1 and modules/freeswitch-1.1.1
signature.asc

Darren Schreiber

unread,
May 16, 2013, 4:43:12 PM5/16/13
to 2600hz...@googlegroups.com
Can you try putting that config file in both those modules? I wonder if
it's reading the wrong one...

Michael Mol

unread,
May 16, 2013, 4:53:44 PM5/16/13
to 2600hz...@googlegroups.com
I compared the freeswitch.php under freeswitch-1.1*/config/, and didn't
see any difference relating to anything I'd configured. Seeing that
there was little to nothing in in -1.1/config/freeswitch.php that wasn't
in -1.1.1/config/freeswitch.php (that is, the 1.1.1 version was a
superset of the 1.1 version), I copied the 1.1.1 version over the 1.1
version.

No change.
signature.asc

Darren Schreiber

unread,
May 16, 2013, 4:57:23 PM5/16/13
to 2600hz...@googlegroups.com
one last place - please look in bluebox/bluebox/config/config.php I
believe - see if there's an override in there.

if not, I'll need to login to this box to look at it - email me off-list
please.
>>>>>>>>>it
>>>>>>>>> ch
>>>>>>>>> .p
>>>>>>>>> hp
>>>>>>>>> *
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>/var/www/html/bluebox/bluebox/modules/freeswitch-1.1.1/config/free
Reply all
Reply to author
Forward
0 new messages