# Playing music after the caller selects an option from IVR

**URL:** <https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886>\
**Category:** Asterisk Support\
**Created:** [December 6, 2006, 11:31am UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886 "2006-12-06T11:31:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cchhhhhoh](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cchhhhhoh](https://community.asterisk.org/u/cchhhhhoh)\
**Post date:** [December 6, 2006, 11:31am UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/1 "2006-12-06T11:31:51Z")

</div>

Hi,

I know this might sound a silly question but I have not been able to find an answer for it after lots of searching.

my problem is that when a caller selects an option there is few seconds silence before ringing the extension, I want to fill this gap by playing a music or announcing something, is there a solution for this?

THANKS

---

<div class="post-metadata">

**Author:** ![vinod.vijayan](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@vinod.vijayan](https://community.asterisk.org/u/vinod.vijayan)\
**Post date:** [December 6, 2006, 12:02pm UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/2 "2006-12-06T12:02:00Z")

</div>

according to my knowledge - no.

This type of functionality is not needed and is usually provided by the  
called party and not the calling party.

---

<div class="post-metadata">

**Author:** ![cchhhhhoh](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cchhhhhoh](https://community.asterisk.org/u/cchhhhhoh)\
**Post date:** [December 6, 2006, 12:30pm UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/3 "2006-12-06T12:30:28Z")

</div>

I dont understand why its not needed, there is almost 5 seconds silence before the caller hears the first ring.

I have seen this feature on Panasonic PBXs which caller gets an announcement after choosing an option from IVR. So I think there must be a way in Asterisk as well.

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [December 6, 2006, 12:33pm UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/4 "2006-12-06T12:33:35Z")

</div>

show us your IVR. is there a reason why you can’t pad your Background() soundfile out with music, or use an ‘&’ to play a music file after the IVR.

what timeouts are you using ?

---

<div class="post-metadata">

**Author:** ![cchhhhhoh](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cchhhhhoh](https://community.asterisk.org/u/cchhhhhoh)\
**Post date:** [December 6, 2006, 12:40pm UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/5 "2006-12-06T12:40:38Z")

</div>

here is my IVR, how can I play something after IVR?  
Thanks

[mycontext]  
exten =\> s,1,Answer()  
exten=\> s,2,Wait(1)  
exten =\> s,3,Background(welcome)

exten =\> 1,1,Dial(SIP/test,rt)  
exten =\> 1,2,VoiceMail(u8@default)  
exten =\> 1,102,VoiceMail(b8@default)

exten =\> 2,1,Dial(SIP/test2,20,rt)  
exten =\> 2,2,VoiceMail(u9@default)  
exten =\> 2,102,VoiceMail(b9@default)

exten =\> i,1,Playback(pbx-invalid)  
exten =\> i,2,Goto(mycontext,s,1)  
exten =\> t,1,Goto(2,1)

---

<div class="post-metadata">

**Author:** ![baconbuttie](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/baconbuttie/32/916_2.png) [@baconbuttie](https://community.asterisk.org/u/baconbuttie)\
**Post date:** [December 6, 2006, 1:19pm UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/6 "2006-12-06T13:19:02Z")

</div>

> [@baconbuttie](#):
>
> what timeouts are you using ?

so that would be none then. Asterisk defaults to a 5 second DigitTimeout, so that’s why you get 5 seconds of nothing while it’s waiting for additional input. try adding Set(TIMEOUT(digit)=0) or Set(TIMEOUT(digit)=1) to the IVR.

[voip-info.org/wiki/index.php … nc+timeout](http://www.voip-info.org/wiki/index.php?page=Asterisk+func+timeout)

---

<div class="post-metadata">

**Author:** ![cchhhhhoh](https://avatars.discourse-cdn.com/v4/letter/c/a88e4f/32.png) [@cchhhhhoh](https://community.asterisk.org/u/cchhhhhoh)\
**Post date:** [December 7, 2006, 7:47am UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/7 "2006-12-07T07:47:55Z")

</div>

Thanks

But is there any way to play music or an announcement after the caller dials his option?

---

<div class="post-metadata">

**Author:** ![chipsake](https://avatars.discourse-cdn.com/v4/letter/c/278dde/32.png) [@chipsake](https://community.asterisk.org/u/chipsake)\
**Post date:** [December 7, 2006, 8:21am UTC](https://community.asterisk.org/t/playing-music-after-the-caller-selects-an-option-from-ivr/10886/8 "2006-12-07T08:21:08Z")

</div>

You already done it… in the i extension when Playback() is used.  
Do the same before Dial().
