Asterisk SIP MySQL Configuration

Source: Internet
Author: User
Tags manual writing

Recently studied asterisk configuration, before the SIP account is configured in the sip.conf file, manual writing dead, the current demand, is the dynamic new SIP account, saved in the database.

After adding data to the database, use the command SIP show users to not load the SIP account to the database.

1. Download X-lite soft phone client, login SIP account, can login successfully.

2. Modify the res_config_mysql.conf file, configure the database link (host,dbname,username,password)

3. Modify the extconfig.conf file, configure
Sippeers = Mysql,general,bit_sip_buddies
Sipusers = Mysql,general,bit_sip_buddies

"General" This is the head tag in res_config_mysql.conf,

"Bit_sip_buddies" This is the table name of the SIP user

4. Modify the sip.conf file

Rtupdate=yes
Rtcachefriends=yes
Rtsavesysname=yes
These three configurations are the focus, be sure to match at the same time, you can solve the SIP show users command does not display the database SIP account problem.

5. Check before operation

(1) Realtime MySQL status enter this command to monitor Realtime plugin service there is no

(2) before the SIP Show Users command is executed, the SIP account must be logged in with the X-lite client before it can be loaded into memory to display the SIP user information.




Asterisk SIP MySQL Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.