CREATE ROLE "freeswitch" WITH LOGIN ENCRYPTED PASSWORD 'asdkjdjfewfww3f';
CREATE DATABASE "freeswitchdb" WITH OWNER "freeswitch" ENCODING 'UTF-8';
\c "freeswitchdb"
CREATE SCHEMA AUTHORIZATION "freeswitch";
GRANT ALL ON SCHEMA "freeswitch" to "freeswitch";
GRANT ALL ON ALL SEQUENCES IN SCHEMA "freeswitch" TO "freeswitch";
GRANT ALL ON ALL TABLES IN SCHEMA "freeswitch" TO "freeswitch";
-- DROP SCHEMA public;
switch_xml_config.c:437 Configuration parameter [core-db-dsn] is unfortunately not valid, you might want to double-check that.
<param name="odbc-dsn" value="pgsql://hostaddr=10.22.0.1 port=5432 dbname=freeswitchdb user=freeswitch password='asdkjdj3d03jdks' options='-c client_min_messages=NOTICE' application_name='freeswitch'"/>
name="odbc-dsn"
чрез него у меня всё работало...
Но мне надо непосрдесвенно ядро выше по ссылке
<param name="core-db-dsn" value="pgsql://hostaddr=127.0.0.1
dbname=freeswitch user=freeswitch password='' options='-c
client_min_messages=NOTICE' application_name='freeswitch'" />
вот тут человек тоже интересовался про прямой коннект...
https://freeswitch.org/jira/browse/FS-6493
и походу как то решил но из всего там написанного я не понял как...
postgres@fs1:~$ psqlpsql (9.4.0)Type "help" for help.
postgres=# \l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges --------------+------------+----------+-------------+-------------+----------------------- freeswitchdb | freeswitch | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres(4 rows)
postgres=# \c freeswitchdb You are now connected to database "freeswitchdb" as user "postgres".freeswitchdb=# \du List of roles Role name | Attributes | Member of ------------+------------------------------------------------+----------- freeswitch | | {} postgres | Superuser, Create role, Create DB, Replication | {}
freeswitchdb=# set sesearch_path seq_page_cost session session_preload_libraries session_replication_role freeswitchdb=# set search_path to freeswitch;SETfreeswitchdb=# \dt+ List of relations Schema | Name | Type | Owner | Size | Description ------------+-------------------------------------+-------+------------+------------+------------- freeswitch | aliases | table | freeswitch | 8192 bytes | freeswitch | calls | table | freeswitch | 8192 bytes | freeswitch | channels | table | freeswitch | 8192 bytes | freeswitch | complete | table | freeswitch | 56 kB | freeswitch | interfaces | table | freeswitch | 104 kB | freeswitch | nat | table | freeswitch | 0 bytes | freeswitch | recovery | table | freeswitch | 8192 bytes | freeswitch | registrations | table | freeswitch | 8192 bytes | freeswitch | sip_authentication | table | freeswitch | 48 kB | freeswitch | sip_dialogs | table | freeswitch | 8192 bytes | freeswitch | sip_presence | table | freeswitch | 8192 bytes | freeswitch | sip_registrations | table | freeswitch | 8192 bytes | freeswitch | sip_shared_appearance_dialogs | table | freeswitch | 8192 bytes | freeswitch | sip_shared_appearance_subscriptions | table | freeswitch | 8192 bytes | freeswitch | sip_subscriptions | table | freeswitch | 8192 bytes | freeswitch | tasks | table | freeswitch | 16 kB | (16 rows)
<param name="core-db-dsn" value="pgsql://hostaddr=10.22.0.1 port=5432 dbname=freeswitchdb user=freeswitch password='asdkjdj3d03jdks' options='-c client_min_messages=NOTICE' application_name='freeswitch'" />подскажите плиз.а что это вообще такое https://freeswitch.org/confluence/display/FREESWITCH/PostgreSQL+in+the+core?я могу это использваоть чтобы логи(freeswitch) писались в постгрес?
отправьте логи в syslog и уже его силами пишите в базу. если это вызовет затруднения - обращайтесь )
--
Вы получили это сообщение, поскольку подписаны на группу "freeswitch-ru".
Чтобы отменить подписку на эту группу и больше не получать от нее сообщения, отправьте письмо на электронный адрес freeswitch-r...@googlegroups.com.
Чтобы отправлять сообщения в эту группу, отправьте письмо на электронный адрес freesw...@googlegroups.com.
Чтобы зайти в группу, перейдите по ссылке https://groups.google.com/group/freeswitch-ru.
Чтобы настроить другие параметры, перейдите по ссылке https://groups.google.com/d/optout.