Hello all, I'm running Asterisk 1.4.5 and Zaptel 1.4.3 on Debian Etch i386 with the Digium's Dev Kit that comes with 1 FXO and 1 FXS. How do I configure my home PBX in such a way that whenever someone calls on my trunkline (PSTN) number, he/she will hear a customized ring tone, probably playing an MP3 file, instead of a boring standard ring tone while the extension number that is forwarded the call is still ringing? My current /etc/asterisk/extensions.conf file looks like this: [general] static=yes writeprotect=no autofallthrough=yes clearglobalvars=no [pstn] exten => s,1,NoOp(Caller ID is ${CALLERID(num)}) exten => s,2,Dial(Zap/1,15,g2) exten => s,n,Congestion [local] ignorepat => 9 exten => _9.,1,Dial(Zap/g1/${EXTEN:1}) exten => _9.,n,Congestion exten => 11,1,Dial(Zap/1,20,rt) Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070628/498339af/attachment.htm
Add an Answer and add a m option to your dial command. They will hear your music on hold until you answer. Alex ________________________________ From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of GNUbie Sent: Wednesday, June 27, 2007 12:18 PM To: asterisk-users at lists.digium.com Subject: [asterisk-users] Customized Ring Tone Hello all, I'm running Asterisk 1.4.5 and Zaptel 1.4.3 on Debian Etch i386 with the Digium's Dev Kit that comes with 1 FXO and 1 FXS. How do I configure my home PBX in such a way that whenever someone calls on my trunkline (PSTN) number, he/she will hear a customized ring tone, probably playing an MP3 file, instead of a boring standard ring tone while the extension number that is forwarded the call is still ringing? My current /etc/asterisk/extensions.conf file looks like this: [general] static=yes writeprotect=no autofallthrough=yes clearglobalvars=no [pstn] exten => s,1,NoOp(Caller ID is ${CALLERID(num)}) exten => s,2,Dial(Zap/1,15,g2) exten => s,n,Congestion [local] ignorepat => 9 exten => _9.,1,Dial(Zap/g1/${EXTEN:1}) exten => _9.,n,Congestion exten => 11,1,Dial(Zap/1,20,rt) Thank you in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070627/f1f5039e/attachment.htm
Hello Alex, Does this mean that on my PSTN context, I will add the lines I inserted below? On 6/28/07, Alexander Lopez <Alex.Lopez at opsys.com> wrote:> > Add an Answer and add a m option to your dial command. They will hear > your music on hold until you answer. > > [general] > static=yes > writeprotect=no > autofallthrough=yes > clearglobalvars=no > > [pstn] > exten => s,1,NoOp(Caller ID is ${CALLERID(num)}) >exten => s,2,Answer() exten => s,3,Dial(Zap/1,15,g2,m(music_file)) exten => s,n,Congestion> > [local] > ignorepat => 9 > exten => _9.,1,Dial(Zap/g1/${EXTEN:1}) > exten => _9.,n,Congestion > exten => 11,1,Dial(Zap/1,20,rt) >Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070628/35e2d9b2/attachment.htm
You can use Queues. Put them in a queue and let them listen to music on hold. Cheers, Dimitri GNUbie wrote:> Hello all, > > I'm running Asterisk 1.4.5 and Zaptel 1.4.3 on Debian Etch i386 with the > Digium's Dev Kit that comes with 1 FXO and 1 FXS. How do I configure my > home PBX in such a way that whenever someone calls on my trunkline (PSTN) > number, he/she will hear a customized ring tone, probably playing an MP3 > file, instead of a boring standard ring tone while the extension > number that > is forwarded the call is still ringing? My current > /etc/asterisk/extensions.conf file looks like this: > > [general] > static=yes > writeprotect=no > autofallthrough=yes > clearglobalvars=no > > [pstn] > exten => s,1,NoOp(Caller ID is ${CALLERID(num)}) > exten => s,2,Dial(Zap/1,15,g2) > exten => s,n,Congestion > > [local] > ignorepat => 9 > exten => _9.,1,Dial(Zap/g1/${EXTEN:1}) > exten => _9.,n,Congestion > exten => 11,1,Dial(Zap/1,20,rt) > > Thank you in advance. > > ------------------------------------------------------------------------ > > _______________________________________________ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- This message has been scanned for viruses and dangerous content by Mail Call antivirus software, and is believed to be clean.
Hello Dimitri, On 6/29/07, Dimitri Volski <dimavo at mailcall.com.au> wrote:> > You can use Queues. Put them in a queue and let them listen to music on > hold. >How do you do this based on my original /etc/asterisk/extensions.conf that I have on my home PBX? I just want that the PSTN caller will hear a music instead of a ring tone while the callee rings. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070629/45bab954/attachment.htm