1. odbc настроен корректно
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
root@ovz112:~# echo "select 1+1" | isql -v asterisk
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> select 1+1
+------------+
| ?column? |
+------------+
| 2 |
+------------+
SQLRowCount returns 1
1 rows fetched
+---------------------------------------+
| Connected! |
| |
| sql-statement |
| help [tablename] |
| quit |
| |
+---------------------------------------+
SQL> select 1+1
+------------+
| ?column? |
+------------+
| 2 |
+------------+
SQLRowCount returns 1
1 rows fetched
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
root@ovz112:~# asterisk -rx "odbc show"
ODBC DSN Settings
-----------------
Name: asterisk
DSN: asterisk
Last connection attempt: 1969-12-31 19:00:00
Pooled: No
Connected: Yes
ODBC DSN Settings
-----------------
Name: asterisk
DSN: asterisk
Last connection attempt: 1969-12-31 19:00:00
Pooled: No
Connected: Yes
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
http://www.voip-info.org/wiki/view/Asterisk+RealTime+PostgreSQL
В итоге:
PRIME_BBCODE_SPOILER_SHOW PRIME_BBCODE_SPOILER:
root@ovz112:~# asterisk -rx "sip show users"
Username Secret Accountcode Def.Context ACL Forcerport
Username Secret Accountcode Def.Context ACL Forcerport