xyj70 / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Calling a ring group causes mod_lua to panic because resources/config.lua does not exist #294

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. On a fresh install of 3.1, call a ring group
2. Watch it fail.

What is the expected output? What do you see instead?

2012-08-26 22:51:15.928168 [ERR] mod_lua.cpp:198 
/usr/local/freeswitch/scripts/ring_group.lua:29: cannot open 
/usr/local/freeswitch/scripts/resources/config.lua: No such file or directory
stack traceback:
    [C]: in function 'assert'
    /usr/local/freeswitch/scripts/ring_group.lua:29: in main chunk

What version of the product are you using? On what operating system?

Debian Lenny i386 / Latest freeswitch

Please provide any additional information below.

Note that I added the following resources/conflg.lua manually and got another 
error:

Config:

--switch directories
    sounds_dir = "/usr/local/freeswitch/sounds";
    recordings_dir = "/usr/local/freeswitch/recordings/voice";

--database connection info
    db_type = "mysql";
    db_name = "fusionpbx";

--additional info
    tmp_dir = "";

Error:

2012-08-26 22:36:49.948223 [ERR] mod_lua.cpp:198 
/usr/local/freeswitch/scripts/ring_group.lua:62: attempt to index global 'dbh' 
(a nil value)
stack traceback:
    /usr/local/freeswitch/scripts/ring_group.lua:62: in main chunk

Original issue reported on code.google.com by gsaath...@gmail.com on 27 Aug 2012 at 2:55

GoogleCodeExporter commented 9 years ago
This means your are using MySQL or Postgres and that unix odbc is not installed 
or configured. After it is configured add the ODBC DSN connection information 
to fusionpbx at advanced -> databases. Started a page on the wiki to document 
this.

Original comment by markjcrane@gmail.com on 28 Aug 2012 at 2:15

GoogleCodeExporter commented 9 years ago
I also keep getting the same error:

2012-10-08 11:32:48.686109 [ERR] mod_lua.cpp:198 
/usr/local/freeswitch/scripts/ring_group.lua:62: attempt to index global 'dbh' 
(a nil value)
stack traceback:
        /usr/local/freeswitch/scripts/ring_group.lua:62: in main chunk

I have been attempting to find the page on the wiki for this but I have not 
been able to.  What needs to be installed/configured before ring groups work?  
I have the database connected via ODBC to a mysql database, I believe I have 
installed all the necessary packages...  Why do ring groups depend on this 
database backend to work?  When everything else works without a database 
configured in ADVANCED > Databases...?

Original comment by rstevens...@gmail.com on 8 Oct 2012 at 3:55

Attachments:

GoogleCodeExporter commented 9 years ago
I've started a page in the wiki for Ring Groups.
http://wiki.fusionpbx.com/index.php?title=Ring_Groups#Installation

Original comment by markjcrane@gmail.com on 8 Oct 2012 at 4:46