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