There is one problem with the column types though: answer and end in my case are of type double 23,6 which is not what we want. Anyway should by whatever circumstance the result of a calculation be NULL you might want to default to ' '.
Here's how you can achieve this:. This table uses InnoDB that is much better for writing operations like logging. It has microsecond resolutions for timers. It has more fields that are used in recent Asterisk versions. It has indexes that make search and select operations faster. Evaluate Confluence today. No labels. There are more fields available, 'start', 'answer' and 'end'. Permalink Apr 06, If you do a.
Now is a good time to test your database by connecting to it and performing a query. The syntax used is:. It is important to use the -v flag so that if isql runs into a problem you will be alerted of any diagnostics or errors available. The next step is to recompile Asterisk so that the ODBC modules which required the previously mentioned items can now be built.
Once those modules exist, then you can configure the proper configuration files in Asterisk depending on what information you want to write to or read from MySQL. If you already had Asterisk installed from source and the modules you need are already selected by default in menuselect - then the recompilation process could be as simple as navigating to the Asterisk source and running a few commands.
After you have the connection set up in Asterisk you are ready to then configure your database tables with the proper schema depending on what exactly you want to do with them.
Asterisk comes with some helpful tools to do this, such as Alembic. See the Managing Realtime Databases with Alembic section to get started with Alembic if you are working towards an Asterisk Realtime setup. Evaluate Confluence today. Created by Rusty Newton , last modified by Joshua C. Colp on Apr 16, Secure the installation if appropriate. On This Page. We'll have you login into the mysql command console, create a user, create a database and then assign appropriate permissions for the asterisk user.
First, login using the root password you set earlier. If you want, you can test out the new permissions by logging in as your user to the asterisk database and then logout again.
0コメント