Then the caller will hear the mp3 file. In our example the caller will hear the mp3 file - music. Then the call will be connected to the user user1 through the IAX2 channel, thanks to the Dial application.
In the brackets of the MP3Player application, as argument you have to write the full path to the mp3 file, the name of the mp3 file and it extension. NOTE: Please, pay attention, that in order to use this application you need to have an installed mpg package on your system. So, do not forget to install it, when you compile the asterisk package, during the installation of the Asterisk PBX.
For more information about the installation of the package please read our tutorial about the installation of the Asterisk. For more information about extensions. For more information about iax. This application is tested with our IAX softphone Idefisk. Adding a short delay is often useful for ensuring that the remote endpoing has time to begin processing audio before you play a sound prompt.
Otherwise, you may not hear the very beginning of the prompt. When you're first learning your way around the Asterisk dialplan, it may be a bit confusing knowing when to use the Answer application, and when not to. If Asterisk is simply going to pass the call off to another device using the Dial application, you probably don't want to call the answer the call first. If, on the other hand, you want Asterisk to play sound prompts or gather input from the caller, it's probably a good idea to call the Answer application before doing anything else.
The Playback application loads a sound prompt from disk and plays it to the caller, ignoring any touch tone input from the caller. The first parameter to the dialplan application is the filename of the sound prompt you wish to play, without a file extension. Playback - this application allows you to play a sound file. Syntax: Playback filename[ option]. List with the possible options skip - with this option the sound file will be played only if the channel has already been answered.
In other words this option will turn off the built-in Answer application noanswer - This option is the opposite of the skip one. With this option the sound file will be played before the channel is answered. First play the sound file then answers. Purpose and usage With this application you can play a sound file. We will show you a simple example below. To see how the application works we recommend to use our IAX softphone Idefisk.
You can download it from here. Please also read our tutorial to learn how to configure it to work with Asterisk PBX. Of course you can use it and for other things. We need two registered users in iax. This is because we are going to use the IAX2 protocol. On the picture above you can see our extensions.
0コメント