Free Billing, Routing and Management software for Asterisk and VOIP
Home | Forums | Wiki | Manual | Open Source | Billing and BSS | My Blue Heart | astbss.org
DownLoad | Bugs | Help Wanted | Numbering Plan
  
 

Realtime....

 
By deus at Tue, 2005-10-04 00:59 | AstBill Software - General and Support

show i install this module and its config file to make extconfig.conf work?

res_config_mysql.so res_config_mysql.conf

my asterisk server doesn't

By mrktlr on Mon, 2009-08-31 05:08

my asterisk server doesn't have the res_mysql.conf under /etc/asterisk/

and also doesn't have the res_config_mysql.so module under /usr/lib/asterisk/module

how can I get this?

should I install the mysql server before I install the asterisk?

__________________________________________

» login to post comments

res_config_mysql.conf

By london3 on Tue, 2005-10-04 07:04

Yes you need the res_config_mysql.conf with the below information. You also need to ensure the res_config_mysql.so is loaded.

ARE --

;
; Sample configuration for res_config_mysql.c
;
; The value of dbhost may be either a hostname or an IP address.
; If dbhost is commented out or the string "localhost", a connection
; to the local host is assumed and dbsock is used instead of TCP/IP
; to connect to the server.
;
[general]
dbhost = localhost
dbname = astbill
dbuser = astbilluser
dbpass = astbill419
dbport = 3306
dbsock = /var/run/mysqld/mysqld.sock

» login to post comments

How do I load res_config_mysql.so?

By xlitang on Wed, 2006-03-15 05:23

I search my linux box and can not find res_config_mysql.so. When I tried to start Asterisk, it complaint can not open dynamic library. Please help how can I load res_config_mysql.so module for MySQL Realtime?

» login to post comments

res_config_mysql.so

By Bimpens on Fri, 2007-04-13 12:09

On debian and for that reason also in ubuntu res_config_mysql.so seems to be missing form the package list.
So if you install with apt-get you will not have this available and will be stuck there.

Update:
I finally had got asterisk-addons from asterisk.org and compiled it.
Than moved the missing part to the right location and now it seems to work.

» login to post comments

This is really a question

By voipco on Wed, 2006-03-15 14:38

This is really a question for the Asterisk users list, but I'll give it a whirl.

Make sure you have compiled asterisk add-ons, then make sure the module is is in the asterisk modules directory, then make sure modules.config is set to load res_config_mysql.so.

- Daryl

» login to post comments

I do compile and install

By xlitang on Wed, 2006-03-15 14:44

I do compile and install asterisk-addons
but I can not find res_config_mysql.so in modules directory.
The error I got when I tried to start Asterisk as below:

[res_config_mysql.so]Mar 15 09:32:24 WARNING[10597]: loader.c:325 __load_resour
ce: /usr/lib/asterisk/modules/res_config_mysql.so: cannot open shared object fil
e: No such file or directory
Mar 15 09:32:24 WARNING[10597]: loader.c:499 load_modules: Loading module res_co
nfig_mysql.so failed!

Any idea why I did not get res_config_mysql.so modules?

» login to post comments

Have a look at

By voipco on Wed, 2006-03-15 16:13

Have a look at http://www.voip-info.org/wiki-Asterisk+RealTime

Did you copy res_config_mysql.so from your build directory to the modules directory after compiling asterisk-addons? The error you are getting is because the module is not there.

- Daryl

» login to post comments

Thanks again. As I said I

By xlitang on Wed, 2006-03-15 16:33

Thanks again. As I said I can not find res_config_mysql.so after I compile asterisk-addons, so I am not able to copy it to modules diretory. What I did wrong here? I did follow the instruction on the link you provided, still same problem. ANy idea?

» login to post comments

Sounds like the module is

By voipco on Wed, 2006-03-15 17:18

Sounds like the module is not being compiled for some reason. Did you get any errors when compiling asterisk-addons? in mysql-devel installed? You might try compiling the module by itself and watch for errors. You really should post this to the Asterisk list as this is not an AstBill question.

- Daryl

» login to post comments

I found the problem related

By xlitang on Wed, 2006-03-15 18:16

I found the problem related to the installation of XAMPP. Since XAMPP uses different directory structures, make file for asrterisk addons will not properly compiled and will not load res_config_mysq.so. Have you used XAMPP together with ASTBILL. How do you go about it?

» login to post comments

I have used XAMPP in the

By voipco on Wed, 2006-03-15 19:24

I have used XAMPP in the past but I crosscompiled asterisk on a different box and dropped in XAMPP after the fact, so it doesn't really apply here. There are several posts about XAMPP on this forum though, maybe you can find some additional info searching there.

What what linux distribution are you installing this on?

- Daryl

» login to post comments

I used Fedora Core 4.

By xlitang on Wed, 2006-03-15 20:22

I used Fedora Core 4.

» login to post comments

i use fc4 to make

By deus on Fri, 2006-03-17 12:35

i use fc4
to make res_config_mysql

cc -fPIC -I../asterisk -D_GNU_SOURCE -I/usr/local/mysql/include/mysql/ -c -o res_config_mysql.o res_config_mysql.c
/usr/local/mysql/include/

cc -shared -Xlinker -x -o res_config_mysql.so res_config_mysql.o -lmysqlclient -lz -L/usr/lib/mysql

» login to post comments
  
BerliOS Developer LogoSourceForge.net Logo Drupal.org Logo