Music instead of Ring Ring

Report
Question

Hello, How can I achieve to play a music file instead of typical ring ring
(something like MusicOnHold)... I have the following dialplan, the time when the user calls the context is
executed and the system calls both the user and I hear a Ringing sound. [inc-call]
exten => s,1,Dial(DAHDI/i1/USER2&DAHDI/i1/USER1,20,A(sound-file)) Please suggest

Asterisk Users 3.3 years ago 0 Answers

Call Record and Playing

Report
Question

Hello List, I am using the following dialplan exten => s,1,NoOp(IVR recording test)
exten => s,2,Answer()
exten => s,3,Background(say-temp-msg-prs-pound)
exten => s,4,Record(/var/lib/asterisk/sounds/custom/tempcustommessage.gsm)
exten => s,5,Background(to-listen-to-it&press-1)
exten => s,6,Background(to-accept-recording&press-2)
exten => s,7,Background(to-rerecord-announce&press-3)
exten => 1,1,Playback(/var/lib/asterisk/sounds/custom/tempcustommessage)
exten => 1,2,Goto(s,6)
exten => 2,1,System(cp
/var/lib/asterisk/sounds/custom/tempcustommessage.gsm
/var/lib/asterisk/sounds/custom/ORIGINALMESSAGEname.gsm)
exten => 2,2,Playback(auth-thankyou)
exten => 2,3,Hangup()
exten => 3,1,Goto(s,3) The recorded message cannot be played I get "zero size file error" as
below:-

Asterisk Users 3.3 years ago 0 Answers

Asterisk pickup call on first ring

Report
Question

Hello,
Currently my asterisk system pickup incoming call after 3 or 4 rings.
How can I ask it to answer the call on the first ring? I put
immediate=yes on /etc/asterisk/chan_dahdi.conf but result in no
different. Thanks in advance :) BR,
Anam

Asterisk Users 3.3 years ago 7 Answers