Robert Augustyn
2008-Oct-06 14:07 UTC
[asterisk-users] How to implement Ringing through a sound card for overhead paging
Hi, I have followed this guide http://www.voip-info.org/wiki/view/Setting+up+paging+with+a+sound+card and have paging working ok, now I need to implement 'ringing'. When someone calls I need the ringing to be send to overhead paging through the sound card. Any pointers? Sincerely, Robert Augustyn www.linqone.com <http://www.linqone.com/> -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081006/f86bb30b/attachment.htm
Doug Lytle
2008-Oct-06 14:33 UTC
[asterisk-users] How to implement Ringing through a sound card for overhead paging
Robert Augustyn wrote:> Hi, > I have followed this guide > http://www.voip-info.org/wiki/view/Setting+up+paging+with+a+sound+card > and have paging working ok, now I need to implement 'ringing'. > When someone calls I need the ringing to be send to overhead paging > through the sound card.I have recorded a sound effect, use a callfile to play the file via the sound card. I have a very short timeout for that extension. I just jump back to the beginning on the context, play the sound effect and then ring the phone again. Code below: ;****************************************************** ;* If Press extension is dialed after 5pm, play bull ;* Horn sound effect to get pressman's attention ;****************************************************** [night_bell] exten => 4173,1,GotoIfTime(07:45-16:59|mon-fri|*|*?press-officehours,s,1) exten => 4173,2,System(/bin/cp /usr/local/bin/bullhorn.call /var/spool/asterisk/outgoing/bullhorn`date +%s`.call) exten => 4173,3,Dial(SIP/4173,15,tTkK) exten => 4173,4,Goto(night_bell,4173,1) <bullhorn.call> Channel: Console/dsp MaxRetries: 0 Application: playback Data: /var/lib/asterisk/sounds/local/bullhorn Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Robert Augustyn
2008-Oct-06 18:27 UTC
[asterisk-users] How to implement Ringing through a sound card for overhead paging
Ok then how do you make that an night_bell as your extension? Thanks> -----Original Message----- > From: asterisk-users-bounces at lists.digium.com > [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of > Doug Lytle > Sent: Monday, October 06, 2008 12:31 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] How to implement Ringing > through a sound card for overhead paging > > Robert Augustyn wrote: > > Doug, > > That is interesting concept. > > How do you add this to a ring group and does it stop when > an extension > > is picked up? > > > > It depends on how you have your ring group setup, I > personally only do this with a single extension. And yes, > the bullhorn sound stops when the phone is answered. > > Doug > > > -- > > Ben Franklin quote: > > "Those who would give up Essential Liberty to purchase a > little Temporary Safety, deserve neither Liberty nor Safety." > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona Register > Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
Julien Claassen
2008-Oct-07 08:05 UTC
[asterisk-users] How to implement Ringing through a sound card for overhead paging
Hi! I have a different approach. I wrote a small application which simply starts an audio player. You can write a very small script to answer fast or just use telnet like this: telnet localhost 8642 At the moment everything is hardcoded, but can be changed in any case. I use 15s ring-time, telnet-port 8642 and mplayer as the audio-player. Short note: You don't have to submit anything over telnet, just connect. If you're interested in this solution I'll upload the code and give you a dialplan example (it's based in the return code of the program. Kindest regards Julien -------- Music was my first love and it will be my last (John Miles) ======== FIND MY WEB-PROJECT AT: =======http://ltsb.sourceforge.net the Linux TextBased Studio guide ======= AND MY PERSONAL PAGES AT: ======http://www.juliencoder.de