Skip to content

Commit 449a43d

Browse files
committed
fix: wrong field in odbc conf for db connection
1 parent 73608ab commit 449a43d

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Diff for: docs/Configuration/Channel-Drivers/SIP/Configuring-res_pjsip/Setting-up-PJSIP-Realtime.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Next, we'll tell ODBC **which** MySQL database to use. To do this, we'll edit t
164164
[asterisk]
165165
Driver = MySQL
166166
Description = MySQL connection to ‘asterisk’ database
167-
Server = localhost
167+
Servername = localhost
168168
Port = 3306
169169
Database = asterisk
170170
UserName = root
@@ -173,7 +173,10 @@ Socket = /var/run/mysqld/mysqld.sock
173173
174174
```
175175

176-
Take care to use your database access UserName and Password, and not necessarily what's defined in this example.
176+
Keep in mind that the `Servername` parameter should not be confused with `Server` that is invalid.
177+
178+
!!!note
179+
Take care to use your database access UserName and Password, and not necessarily what's defined in this example.
177180

178181
Now, we need to configure Asterisk's ODBC resource, res_odbc, to connect to the ODBC **asterisk** database handle that we just created. res_odbc is configured using the */etc/asterisk/res_odbc.conf** configuration file. There, you'll want:
179182

Diff for: docs/Configuration/Interfaces/Back-end-Database-and-Realtime-Connectivity/ODBC/Getting-Asterisk-Connected-to-MySQL-via-ODBC.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@ Add the following to /etc/odbc.ini
128128
Description = MySQL connection to 'asterisk' database
129129
Driver = MariaDB
130130
Database = asterisk
131-
Server = localhost
131+
Servername = localhost
132132
Port = 3306
133133
Socket = /var/lib/mysql/mysql.sock
134134
135135
```
136136

137137

138+
!!! note
139+
Keep in mind that the `Servername` parameter should not be confused with `Server` that is invalid.
138140

139141
!!! note
140142
You may want to verify that mysql.sock is actually in the location specific here. It will differ on some systems depending on your configuration.

0 commit comments

Comments
 (0)