I am new to the asterisk world. I have installed asterisk now in one of my pc. after that i have connected it with a postgresql database. It worked fine.
In another pc i installed asterisk from source code of 1.4 with libpri, and asterisk-addons. I want to connect to postgresql database from this asterisk. but i am lost. i have found out it can be done through unixodbc. so i was thinking does asterisknow use unixodbc to connect to pgsql. if not how do i do it without odbc? is it possible? please help.
you don’t have to use odbc anymore there is a native postgres module of asterisk. you need to have postgresql development libraries installed. run ‘make menuselect’ and select res_config_pgsql in Resource modules section.
Then make and make install.
[quote=“godson”]you don’t have to use odbc anymore there is a native postgres module of asterisk. you need to have postgresql development libraries installed. run ‘make menuselect’ and select res_config_pgsql in Resource modules section.
Then make and make install.
Hi,
Once included into asterisk, how do I use this module? I am wrestling with the odbc-connector, so if there is another solution, I would gladly give it a shot. For I am at a loss at the moment.
I would be grateful for some more info, or for some tips on where to find more info… As long as I can finally approach the problem from another angle…
I didn’t manage at first to get pgsql to work directly with asterisk, so I reverted to odbc. But eventually I got stuck there, because cdr wouldn’t work.
So I thought giving your solution another try, but this time I put into modules.conf the following statement: load=>res_config_pgsql.so and now magically everything works, even cdr. So thanks at least for the good lead.