how to register a sip user using MYSQL in asterisk?

I want to register a sip user dynamically by verifying the credentials specified in database which I have connected to ?

Answers


I suggest you read upon the extconfig.conf file, used especially for this:

;
; Static and realtime external configuration
; engine configuration
;
; See https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configuration
; for basic table formatting information.
;
[settings]
;
; Static configuration files:
;
; file.conf => driver,database[,table[,priority]]
;
; maps a particular configuration file to the given
; database driver, database and table (or uses the
; name of the file as the table if not specified)
;
;uncomment to load queues.conf via the odbc engine.
;
;queues.conf => odbc,asterisk,ast_config
;extensions.conf => sqlite,asterisk,ast_config

Regards, Mirko


You will need to make use of Asterisk Realtime Architecture (ARA), which enables you to store the configuration files (that would normally be found in /etc/asterisk) and their configuration options in a database table.

The following link clearly describes creation of databases to replace sip.conf with database table.

You will also need to setup the odbc connector for asterisk. You can find more information about installing mysql and its odbc connector in the following link.


Need Your Help

iOS Communication between Model and ViewController

ios model-view-controller

I am developing an app based on the Master-View template provided by Apple (it consists of two ViewControllers, the MasterViewController and the DetailViewController). I have added a Model for

How to load a bitmap into an image-view with Picasso

android picasso android-bitmap

Yes, I am using Picasso to load a bitmap. The reason is I am decoding URIs in one part of my adapter, and loading bitmaps in another, and I read here that