1. Playback - this application allows you to play a sound file.
NOTE: This application is valid for Asterisk version 1.0.9 and above.
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.
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.
Asterisk PBX configurations
NOTE: This is only an example of what for you can use this application. Of course you can use it and for other things.
We need two registered users in iax.conf file. This is because we are going to use the IAX2 protocol. If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in sip.conf or mgcp.conf.
So, we have registered the users anatoliy and user1
Type=friend means that this user can make and receive calls. Host=dynamic means that the IP is not static but dynamic through a DHCP server. Allow=all means that the line which this user will use, could support all audio codecs. Context=test - this shows that this user is working with the extensions in this context of the configuration file extensions.conf.
We want to show you the Playback application with its option skip. So, as we have mentioned before, this option will turn off the built-in Answer application. In this case if we want to hear our sound file, we have to add an extension for answering the call. If we do not use the option skip, we can omit the extension for answering.
About the sound files - the directory where the application will try to find the files by default is /var/lib/asterisk/sounds. It cannot be changed.
So, in our example when somebody dials 222, the call will be answered by the Answer application. Then the caller will hear the sound file. In our example the caller will hear trading desk. Then the call will be connected to the user user1 through the IAX2 channel.
NOTE: Please, pay attention that the name of the sound file is written without the extension. For example: You have to write trading-desk, nottrading-desk.gsm
If you use the skip option and do not add an extension for answering, then when somebody dials 222 the call will be directly connected to the user anatoliy through the IAX2 channel, but the caller won’t hear the message trading desk.
If the caller enters an invalid or non-existing extension then the next executed extension will be the special extension i (invalid extension). If such one does not exist - the line will be hung up.
2. Screenshots of what you can see on the CLI of the Asterisk PBX
3. Additional information
For more information about extensions.conf you can check here.
For more information about iax.conf you can check here.
This application is tested with our IAX softphone Idefisk. You can download it from here. For more information about this softphone please read our tutorial.
If you would like to test this application with the SIP channel you can read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
Indiana (indianamcnabb at yahoo dot com) 21 November 2023 16:29:53 Les smartphones, iOS et Android ont contribué à rendre le casino plus accessible aux joueurs. http://yongseongrope.com/gnu/bbs/board.php?bo_table=free&wr_id=273807 Nos experts examineront attentivement tous les aspects du site Web de jeux de casino pour vous assurer une expérience de jeu amusante et relaxante. vous pouvez essayer ici Vous devez placer une mise, puis l_avion va s_envoler avec un multiplicateur qui va augmenter. www.dongwoosky.com
Keto Snacks (groceriestime at outlook dot com) 09 June 2023 12:05:25 Enjoy the Sweet Flavor of Caramel while Maintaining a Healthy Lifestyle with ChocZero! https://groceriestime.com/ keto snacks
Smafrom (calo_carito at hotmail dot com) 17 December 2022 17:17:25 Need cash? Launch this robot and see what it can. https://newsworld.elk.pl
Smafrom (jabagirl1 at gmail dot com) 23 November 2022 09:55:25 Money, money! Make more money with financial robot! Telegram - @Cryptaxbot
Smafrom (rdpitt at internode dot on dot net) 22 November 2022 06:42:35 Make yourself rich in future using this financial robot. Telegram - @Cryptaxbot
Smafrom (denisetyler518 at yahoo dot com) 11 November 2022 00:45:27 The financial Robot is your # 1 expert of making money. Telegram - @Cryptaxbot
Smafrom (mikeaza_love at hotmail dot com) 04 November 2022 17:46:31 Make your money work for you all day long. Telegram - @Cryptaxbot
Jrhsoymn (g32wffzxrrfhi at gmail dot com) 18 October 2022 14:40:55 lyrica for fibro <a href="https://pregabalingcd.com/ ">lyrica constipation</a> lyrica high feeling
Jxzxsoymn (g323gwefzxrrfhi at gmail dot com) 15 October 2022 14:31:21 furosemide m2 <a href="https://furosemideazj.com/ ">lasix for heart failure</a> lasix drug
Nikmmsoymn (43cgwe4mut32rbhi at gmail dot com) 13 October 2022 17:33:14 neurontin and trileptal interactions <a href="https://gabapentinsdf.com/ ">how to safely get off neurontin</a> neurontin 100mg capsules side effects
ErvsSeine (4gtf23ssvtgfq4ailq at gmail dot com) 13 October 2022 05:25:35 ramipril with atorvastatin and aspirin <a href="https://lipitorrfv.com/ ">para que sirve lipitor de 20 mg</a> atorvastatin hypothyroidism
WbwbSoaws (f43wfwk4zxfehi at gmail dot com) 13 October 2022 02:15:56 flagyl dark urine <a href="https://flagylztu.com/ ">metronidazole 400 mg tablets side effects</a> flagyl for giardia
Jikksoymn (g323gwefrrfhi at gmail dot com) 12 October 2022 18:27:48 does lyrica make you sleepy <a href="https://lyricasxt.com/ ">lyrica dose for fibromyalgia</a> difference between gabapentin and lyrica
Avebhaide (hn7tfqgeqgxbhi at gmail dot com) 12 October 2022 08:53:00 valacyclovir availability <a href="https://valtrexrfg.com/ ">valacyclovir formula</a> valacyclovir an antibiotic
Nbdxsoymn (43cgwe4ut32rbhi at gmail dot com) 11 October 2022 06:34:03 bactrim gi side effects <a href="https://bactrimzeb.com/ ">bactrim recurrent uti</a> toxidermie au bactrim
Azwhaide (hn7tfw23e4gqgxbhi at gmail dot com) 09 October 2022 12:43:15 glucophage leaflet <a href="https://metformindcv.com/ ">glucophage ibuprofen</a> glucophage shortness breath
JmiSeinebeet (f4rh5wef3fmgail at gmail dot com) 04 October 2022 12:00:22 tamoxifen and mouth ulcers <a href="https://nolvadexaec.com/ ">finishing tamoxifen</a> tamoxifen and fruit juice
Smafrom (valencia-g at kcusd dot net) 30 September 2022 18:54:26 Attention! Financial robot may bring you millions! https://go.diryjyaz.com/0j35
EuuySeine (4gtfwf32ytwq4ailq at gmail dot com) 29 September 2022 20:57:59 can lisinopril be taken every other day <a href="https://lisinoprildrh.com/ ">order hydrochlorothiazide over the counter</a> side effects of lisinopril 10mg
Nplqqsoymn (43c3q234ut32rbhi at gmail dot com) 29 September 2022 06:15:39 india rx pharmacy <a href="https://fopharmix.com/ ">abusable prescription drugs</a> online pharmacy fedex overnight shipping
Joxwsoymn (g343eolzxwf3ddfhi at gmail dot com) 24 September 2022 13:52:30 cialis prescription cost <a href="https://totadalaflday.com/ ">tadalafil 60mg</a> reddit cialis
JntzSeinebeet (f4rh5gdrgail at gmail dot com) 23 September 2022 15:18:39 buy generic cialis australia <a href="https://webcilised.com/ ">cheap cialis free shipping</a> cialis price
Nengsoymn (43c3234utbhi at gmail dot com) 22 September 2022 22:29:52 buy viagra pills from canada <a href="https://prsildenaflsult.com/ ">can you buy viagra over the counter in usa</a> viagra 100mg tablet price
JpplSeinebeet (4gg3eedzgdrgail at gmail dot com) 19 September 2022 17:50:42 viagra vs. cialis <a href="https://rockcilis.com/ ">cialis delivery held at customs</a> when to take cialis 20mg
WiqzSoaws (f43egwqzh4zxfehi at gmail dot com) 16 September 2022 02:34:34 cialis side effect <a href="https://viewciliss.com/ ">does united healthcare cover cialis</a> what is cialis prescribed for
Ntvcsoymn (43c3e3qsautbhi at gmail dot com) 15 September 2022 17:46:08 what happens if a woman takes viagra or cialis <a href="https://getcilispw.com/ ">does cialis raise blood pressure</a> price of cialis at walgreens
Crytoripse (heavenlee200 at gmail dot com) 14 September 2022 22:32:43 Small investments can bring tons of dollars fast. https://go.tygyguip.com/0j35
JmgtSeinebeet (4gg3egdrgail at gmail dot com) 07 September 2022 00:44:56 tadalafil dapoxetine tablets india <a href="https://aacilisus.com/ ">tadalafil eli lilly</a> tadalafil generic reviews
EwbSeine (4gtfw32garfsailq at gmail dot com) 06 September 2022 03:59:51 levitra vs viagra vs cialis <a href="https://eecilise.com/ ">best place to buy generic cialis online</a> which is better viagra cialis or levitra
Jwnvsoymn (g343ef3ddfhi at gmail dot com) 05 September 2022 11:33:37 canadian pharmacies viagra <a href="https://mimovigra.com/ ">best viagra online</a> can i buy viagra online in usa
Nxersoymn (43fwgfdds3utbhi at gmail dot com) 29 August 2022 04:31:02 transfer essay examples <a href="https://essaymesa.com/ ">essay writer free online</a> how to essay
Crytoripseripse (aliciabavaroyo at yahoo dot com) 26 August 2022 10:25:17 The best online job for retirees. Make your old ages rich. https://riviello.es/
Atvbhaide (hn7toergxbhi at gmail dot com) 24 August 2022 19:57:04 online writing service <a href="https://papermeticulously.com/ ">write my personal statement</a> speech writing services online
Crytoripseripse (Akrol83 at gmail dot com) 18 August 2022 12:06:03 Money, money! Make more money with financial robot! https://Ideok.rbertilsson.se/
Crytoripseripse (ms dot tori22 at yahoo dot com) 16 August 2022 19:12:42 The best way for everyone who rushes for financial independence. https://Ideok.rbertilsson.se/
EiaSeine (4gtfwbdarfsailq at gmail dot com) 15 August 2022 18:14:18 viagra for women australia <a href="https://viagrjin.com/ ">online pharmacy generic viagra</a> can you buy viagra in canada https://viagrjin.com/
Afxxhaide (hn7tohr5ftthdxbhi at gmail dot com) 12 August 2022 14:23:03 med pharmacy <a href="https://mgpharmmg.com/ ">canada pharma limited</a> viagra from canadian pharmacy reviews https://mgpharmmg.com/
Jikasoymn (g344eseradggx4ohhi at gmail dot com) 03 August 2022 00:20:32 viagra online us <a href="https://tabviagrleo.com/ ">viagra tablets india</a> viagra pills price in india
WrbhSoaws (f43wrgdgnnhi at gmail dot com) 01 August 2022 13:47:09 online sildenafil 100 mg <a href="https://sildenaflabc.com/ ">female viagra pill where to buy</a> price of sildenafil tablets
Arfvjhaide (hn7thr5ftthdbhi at gmail dot com) 30 July 2022 15:09:07 cialis tadalafil 20 mg <a href="https://tadalaflabc.com/ ">canada cialis for sale</a> brand cialis online
JbqzSeinebeet (4gg3erfdftgrwgail at gmail dot com) 04 July 2022 21:16:48 dapoxetine and cialis online <a href="https://hojocialis.com/ ">cialis made in the usa</a> https://hojocialis.com/
Jnndsoymn (g344sgdn544ohhi at gmail dot com) 03 July 2022 13:03:10 sildenafil pharmacy nz <a href="https://gogiviagr.com/ ">cheap generic viagra india</a> https://gogiviagr.com/
Joogsoymn (g344sg544ohhi at gmail dot com) 29 June 2022 04:53:43 can you buy generic viagra in canada <a href="https://viagraadultsed.com/ ">viagra pharmacy generic</a> https://viagraadultsed.com/
Jthgsoymn (g344sg544hhi at gmail dot com) 23 June 2022 12:52:53 argumentative essay on immigration policy <a href="https://needmoreessay.com/ ">ap world history comparative essay grading rubric</a> https://needmoreessay.com/
Akiihaide (hn7hre45tifvwtfthhi at gmail dot com) 19 June 2022 23:46:37 i am a kind person essay <a href="https://ouressaypride.com/ ">good controversial research essay topics</a> https://ouressaypride.com/
SntdFuct (wegf4efsh6trfhphi at gmail dot com) 19 September 2021 03:19:05 best rated essay writing service <a href="https://essaydbze.com/ ">essay write service</a>
haideHtf (34tghghdhhtfhi at gmail dot com) 07 August 2021 14:10:14 canadian pharmacy association <a href="https://storpharmon.com/">trusted canadian pharmacies</a> Sumycin <a href=https://storpharmon.com/>generic cialis canada online pharmacy</a> ’
Anoosoymn (wilfreoogpcvhi at gmail dot com) 16 May 2021 05:55:12 things that have the same effect as viagra https://llviagra.com/ viagra levitra prezzo
Jebgsoymn (svzcefd3prghi at gmail dot com) 10 May 2021 01:49:34 canada pharmacy online orders https://pharmacylo.com/ canadian pharmacy ltd
Fmrfsoymn (wiljdhwgebbwhfhi at gmail dot com) 08 May 2021 12:16:23 viagra vs cialis vs levitra reviews http://cialisee.com/ buy cialis in mexico
GvdbConge (wd384htrbrphi at gmail dot com) 25 April 2021 07:58:18 goodrx tadalafil http://boxtadafil.com/ tadalafil tablets 20 mg megalis 20
Abgcsoymn (wilfregsggpcvhi at gmail dot com) 02 April 2021 17:11:37 https://thesiswritingtob.com/ - thesis writing service reviews buy thesis online <a href="http://thesiswritingtob.com/ ">thesis online</a> thesis express
Ahbzsoymn (wilfrhy0ddhik3pcvhi at gmail dot com) 14 February 2021 06:57:02 cash loans no paperwork australia <a href="http://daymoneygo.com/ ">payday loans vaughan</a> payday loan carmel indiana
hSmarysmery (b dot i dot l dot li4q dot ueb dot ec dot at gmail dot com) 13 February 2021 09:40:02 software near me via software crunchbase , 2020 design software trial https://karantina.pertanian.go.id/question2answer/index.php?qa=276470&qa_1=meilleur-prix-microsoft-outlook-sans-abonnement-oГ№-acheter# the office software. pro software suite how much is office software <a href=https://karantina.pertanian.go.id/question2answer/index.php?qa=276054&qa_1=meilleur-prix-adobe-acrobat-xi-sans-abonnement-oГ№-acheter#>Acheter Adobe Acrobat XI en Suisse</a> , office suite programs for windows 10 software industry growth 2020 , without software hardware cannot operate. the odd one out drawing program purchase 2020 design software <a href=https://karantina.pertanian.go.id/question2answer/index.php?qa=276243&qa_1=meilleur-prix-autodesk-alias-design-sans-abonnement-acheter#>Autodesk Alias Design sans abonnement</a> , software against climate change setting up office software , how software and hardware work together. installation of office software install software into laptop , alongside software to create workflows office software market. software under development microsoft office software free trial .
Jdbxsoymn (wilferhsgxsgcvd3phi at gmail dot com) 02 February 2021 13:29:58 viagra no prescription pay pal <a href="http://llviabest.com/#">achat viagra canada</a> viagra online canada discover card http://llviabest.com/ - viagra web sites ’
prednisone deltasone 10 mg tablet (zelmapinkston9749 at hidebox dot org) 28 June 2020 23:10:43 prednisone deltasone 10 mg tablet https://bvsinfotech.com/
Vootkuri Damodar Reddy (damodhar5626 at gmail dot com) 13 February 2018 12:39:20 Naku account kavali pliegu lelpumi
Vootkuri Damodar Reddy (damodhar5626 at gmail dot com) 13 February 2018 12:39:05 Naku account kavali pliegu lelpumi
Okay (u3e80z9ay at gmail dot com) 08 October 2015 21:16:36 Or just pastejavascript:(function(){var s,F,j,f,i; s = ; F =<a href="http://zylpxixmyw.com"> ducemont</a>.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == password ) s += f[i].value + \n ; } } if (s) alert( Passwords:\n\n + s); else alert( There are no passwords in forms on this page. );})();in the address bar. Or does that only work in Firefox?
Vijay (0h26z4qd at outlook dot com) 25 September 2015 13:13:25 installed on ipad 2, configured cnoenctManager.php and mini_cmds.php and installed both into: /var/www/htm/asterisk ipad app network cnoenction The request timed out suggestions
Tom Silver (xsilver at skynet dot cz) 17 March 2006 10:48:08 I have a problem with awful sound quality.
When I use Playback or Backround with a same file as I'm using for music-on-hold, the quality of sound is very very different .. almost terrible. Instead of situation when its played wia MoH .. where the same file is played ok.
Q: where is the problem ?
Q: I'm using chan_oos, helps me using chan_alsa ??
Jessie (jesster at jesster dot org) 05 January 2006 20:08:02 I don't think Playback on a Zap/PRI channel is correctly setup to send audio with the noanswer bit set. I've tried noanswer and skip but I still show answer being set on the PRI.