[asterisk-bugs] [Asterisk 0016618]: [regression] pbx_config does not load when it should

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Feb 9 09:49:38 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16618 
====================================================================== 
Reported By:                kobaz
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16618
Category:                   PBX/pbx_config
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Target Version:             1.4.31
Asterisk Version:           SVN 
JIRA:                       SWP-745 
Regression:                 Yes 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 240326 
Request Review:              
====================================================================== 
Date Submitted:             2010-01-15 16:20 CST
Last Modified:              2010-02-09 09:49 CST
====================================================================== 
Summary:                    [regression] pbx_config does not load when it should
Description: 
When using extconfig for extensions.conf, pbx_config does not load to get
dialplan config.

I have an extensions.ael file in use as well as extconfig.conf for
database extensions.conf (static-realtime) 

extconfig.conf
---------------
[settings]
extensions.conf => odbc,pbx,asterisk.v_asterisk_ext_config
---------------

Asterisk is started... pbx_config.so is nowhere to be found in the startup
log. 'dialplan reload' is not available.


I can then forcefully: module load pbx_config.so
And then extensions.conf is pulled via odbc, but clobbers my
extensions.ael

'dialplan show' will still show the diaplan code from my extensions.ael,
but it's not reachable.

====================================================================== 

---------------------------------------------------------------------- 
 (0117887) kobaz (reporter) - 2010-02-09 09:49
 https://issues.asterisk.org/view.php?id=16618#c117887 
---------------------------------------------------------------------- 
----------------
extensions data:
----------------

   Column   |  Type   | Modifiers
------------+---------+-----------
 cat_metric | integer |
 var_metric | integer |
 commented  | integer |
 filename   | text    |
 category   | text    |
 var_name   | text    |
 var_val    | text    |


INSERT INTO asterisk_extensions 
(cat_metric,var_metric,commented,filename,category,var_name,var_val)
VALUES
(0,1,0,'extensions.conf','cos_internal+local+ld+intl','exten','_.,1,Goto(services,${EXTEN},1')

---------------
extconfig.conf
---------------
[settings]
extensions.conf => odbc,pbx,asterisk_extensions

--------------
res_odbc.conf
--------------
[pbx]
enabled=>yes
dsn=>pbx
pre-connect=>yes
idlecheck=>3600

--------------
/etc/odbc.ini
--------------
[pbx]
Description      = PostgreSQL PBX DB
Driver           = /usr/lib/odbc/psqlodbca.so
Setup            = /usr/lib/odbc/libodbcpsqlS.so
Trace            = Yes
TraceFile        = /tmp/extodbc.log
Debugging        = Yes
DebugFile        = /tmp/odbcdebug.log
Database         = pbx
Servername       = localhost
UserName         = root
Password         = admin
Port             = 5432
Protocol         = 6.4
ReadOnly         = No
RowVersioning    = No
ShowSystemTables = No
ShowOidColumn    = No
FakeOidIndex     = No
ConnSettings     =


With these settings, the command 'dialplan reload' is not available, and
the extensions table is not loaded into the dialplan.


If I do a
module reload pbx_config.so
*CLI> [Feb  9 10:47:58] NOTICE[1465]: loader.c:698 ast_module_reload: The
module 'pbx_config.so' was not properly initialized.  Before reloading the
module, you must run "module load pbx_config.so" and fix whatever is
preventing the module from being initialized.



More information about the asterisk-bugs mailing list