Music as ringtone

Home » Asterisk Users » Music as ringtone
Asterisk Users No Comments


I don’t think even putting a Progress() at the 1st priority will help you
alot give it a try. The reason why I think this will not work that the
clients/UACs have timers and those timers are working exactly the way they
are supposed to and hence when a certain time expires and No-Answer/Ack of
their INVITE is heard they disconnect the call thinking that the server is
Putting a Progress() on first priority may increase your ringing time but
again if you wish to wait 5 seconds and then execute an AGI – this won’t be
an option, keeping in mind the SIP timers. For this the AGIs and All the
stuff should be less than the SIP expiry & retry timers of clients.


On Sat, Apr 28, 2012 at 11:46 PM, Ashish Agarwal wrote:

> Hello,
> I am using asterisk 10 svn version with digium card. I am trying to set
> music file as a ringtone for all incoming calls. I googled and found that
> playback can do that for me. My dialplan is like this
> [from-pstn]
> exten => _X.,1,Playback(“sample-file”, noanswer)
> exten => _X.,n,Wait(5)
> exten => _X.,n,AGI(filename)
> exten => _X.,n,Hangup
> but here though I hear the music being played and the call is not billed
> but the command wait is not executed at all. Infact, my sample-file length
> is around 30sec and the music is only played for 10 sec and hangs up with
> cause 102. I do not see Wait(5) being executed on the console.
> Please help me how this can be achieved.
> Regards,
> Ashish
> —
> _____________________________________________________________________
> — Bandwidth and Colocation Provided by
> New to Asterisk? Join us for a live introductory webinar every Thurs:
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit: