[Asterisk-Users] Need help with extconfig (take 2)

Ehud Gavron gavron at wetwork.net
Wed Oct 27 10:08:18 MST 2004


Not in mime this time.
In a nutshell:
used to have SQL for SIP phones and Voicemail.
Upgraded to latest asterisk.

I am unable to puzzle out the docs for what I need to put in extconfig,
and what I need to add to my system for this to work like it used to prior
to the update.

For example, I have database friends, table sipfriends, which contains
phone data (worked fine with MYSQL_PEERS, MYSQL_USERS, etc.)
I also have a database asterisk_vm, table users, which contains voicemail
data. Below is my extconfig.

I am confused. I need help. I can't figure out from the docs what the point
of /etc/asterisk/configs/res_odbc.conf is if the subdir isn't a typo
/etc/asterisk/res_odbc.conf  (sample below sans passwords)
/etc/asterisk/extconfig.conf  (no, the README.extconfig is good for 
table details but not how to map to the table)
Note that the contents of those files are Pure Guesses based on my lack of
understanding of what's going on.

I did try and read /usr/src/asterisk/config.c, but the lack of comments 
dissuaded
me... and the lack of ast_verbose() dissuaded me from trial and error.

Any advice appreciated.  gavron at wetwork.net

Ehud

[settings]
;
; Static configuration files:
;
; file.conf => driver,database[,table]
;
; maps a particular configuration file to the given
; database driver, database and table (or uses the
; name of the file as the table if not specified)
;
;uncomment to load queues.conf via the odbc engine.
;
;queues.conf => odbc,asterisk,ast_config

;
; Realtime configuration engine
;
; maps a particular family of realtime
; configuration to a given database driver,
; database and table (or uses the name of
; the family if the table is not specified
;
;iaxfriends => odbc,asterisk
sipfriends => odbc,friends,sipfriends
voicemail => odbc,asterisk_vm,users

and res_odbc.conf:
[friends]
dsn=friends
username=asterisk
password=nyuck

[asterisk_vm]
dsn=asterisk_vm
username=asterisk
password=nyuck



More information about the asterisk-users mailing list