How to set up a call to a specific number to play audio

I’ve installed a freePBX and I have a requirement but I’m not sure how to implement it, I’d appreciate any suggestions. My requirement is: I have a SIP phone which is registered to a PBX server, I want to hear a recorded audio when I dial a call from this SIP phone, for example, I dial 101 to hear audio 1 and dial 102 to hear audio 2.

One solution:-

Custom extension 102 has a ‘not reachable’ destination of a ‘play recording’ which originated as ‘audio 1’

rinse and repeat

Thank you very much for your reply, do you know exactly how to set it up? Can the format of the audio be Wav?

Yes I think I know how to set it up, I would create a ‘Custom extension’ named ‘102’ and set it’s ‘not reachable’ destination to ‘play recording’ called audio 1 which I previously uploaded to a system recording’ also called audio 1 :wink:

The format can be anything you have a translation path to and from the bridged channel, but Wav is not a valid one, use wav or WAV or whatever, ( mp3 probably won’t work :slight_smile: )

Useful core functions:-

“core show translations”
“core show codecs”

Good morning, thank you very much for your reply, I created a custom user but couldn’t find the option to play the audio, it would be great if you could get back to me, much appreciated!

It can’t be an arbitrary .wav file, it must be in the Asterisk wav (16 bit. mono, PCM (signed linear), 8kHz), or WAV (GSM standard rate, mono). Other formats are supported, but in .wav form.

Thank you for your reply, the feature I want to implement is to use the device to dial a call number and then it will automatically play a piece of audio, do you know how to set it up?

Check in Module Admin to be sure your “Recordings” module isn’t disabled somehow. The “Play Recording” option should be in that list of destination types if it’s functioning correctly, and the System Recordings page that the module enables should allow you to upload the sound file (in numerous formats) and then utilize it like dicko said.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.