Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: Teviot on March 25, 2012, 07:14:11 AM
-
Hi All
I want to set up an audio file to play when a inbound trunk is called. I allready have the audio file and can't work out how to get it to play when the inbound trunk is called.
(Example)
Anyone calls number 1234. Number 1234 is answered by my PBX. My PBX plays prerecorded audio file with containing information. PBX hangs up after Audio File is played.
Can anyone help me??
-
You can do what you request with a custom app. You can use the Asterisk Playback command to play the sound file.
If you don't wish to write any code you can use an IVR with no choices defined. You will need to rename your sound file to usergreetingnnnn.ttt, where nnnn is a unique 4 digit number and ttt is the recording type (wav, gsm, ulaw, etc.)
Create an IVR and select your usergreeting as the sound file. Set the IVR outcome to Hangup and don'r select any key choices.
Kind Regards
S
-
S
Can you give me some website with examples of custom apps to look at so I can put an app of my own together
-
custom apps are just regular Asterisk extensions.conf contexts. You can read up on them at any of the Asterisk related web sites (e.g. voip-info.org) or you can grab a copy of "Asterisk, the definitive guide" published by O'Reilly.
Kind Regards
S