Share Asterisk realization of the analog ring tone form call

Source: Internet
Author: User
Simply speaking, the ring is called when the calling call, the main call will hear a piece of music or voice. Instead of a normal ringing tone.
In the Asterisk dial () in the addition of lowercase m can be set to achieve playback of voice, that is, the realization of ring tones. The following example:
Copy Code Exten = _x.,1,dial (sip/${exten},,m) so that when the call is called the user, the voice stored in the asterisk can be played, usually stored in the "/var/lib/asterisk/mohmp3/" directory.
So the problem is, I want to specify a file, so it is feasible. Of course it's possible. The implementation steps are as follows: This section is set to hide, you have replied, the following is the hidden content
One: Edit the vi/etc/asterisk/musiconhold.conf file (if the FREEPBX program is installed, then edit VI musiconhold_additional.conf), actually open this file and probably know what's going on. Add the following speech groupings on the last line
Copy code [test] mode=files directory=/var/lib/asterisk/mohmp3/test; Specify file directory two: in/var/ Lib/asterisk/mohmp3 directory to create a new test folder, and import the voice you need, that is, ringtones, pay attention to the voice format, or asterisk will not play

Three: Write the test DialPlan process code:
Copy Code Exten = _x.,1,dial (sip/${exten},,m (test))
Finally remember loading reload best reboot under asterisk service

The original site, for reference only, reproduced does not indicate the source, tracing you to a few light years.


Transferred from: http://www.asterisk-help.com/read.php?tid-1365.html

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.