Dave Packham
2003-Apr-29 10:34 UTC
[Asterisk-Users] Can you invoke an app before dialtone?
say I needed to send a broadcast message that I wanted every user to hear when the pick up thier phone? can I "Play,message" on a line just before they get dialtone? or maybe after they dial before ring? how about a "ringdown" to a voicemail box and on end return them to thier line for the dialout? can * do ringdowns? when a user picks up an extension it automagically rings an extension? Dave
Check out "mode=immediate" in zapata.conf On Tue, 2003-04-29 at 11:34, Dave Packham wrote:> say I needed to send a broadcast message that I wanted every user to > hear when the pick up thier phone? can I "Play,message" on a line just > before they get dialtone? or maybe after they dial before ring? how > about a "ringdown" to a voicemail box and on end return them to thier > line for the dialout? can * do ringdowns? when a user picks up an > extension it automagically rings an extension? > > > Dave > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
Martin Pycko
2003-Apr-29 11:25 UTC
[Asterisk-Users] Can you invoke an app before dialtone?
You could do that by placing in zaptel.conf immediate=yes and then every FXS port is going to be dumped to their default cotext at extension s priority 1. You can then play your message and then use Background to play a dial tone. Martin On Tue, 29 Apr 2003, Dave Packham wrote:> say I needed to send a broadcast message that I wanted every user to > hear when the pick up thier phone? can I "Play,message" on a line just > before they get dialtone? or maybe after they dial before ring? how > about a "ringdown" to a voicemail box and on end return them to thier > line for the dialout? can * do ringdowns? when a user picks up an > extension it automagically rings an extension? > > > Dave > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
>say I needed to send a broadcast message that I wanted every user to >hear when the pick up thier phone? can I "Play,message" on a line just >before they get dialtone? or maybe after they dial before ring? how >about a "ringdown" to a voicemail box and on end return them to thier >line for the dialout? can * do ringdowns? when a user picks up an >extension it automagically rings an extension? > >DaveThis depends on the hardware you're using. A SIP phone (or H323 or MGCP) will normally wait until a certain number of digits or a timeout before sending the dial request to the * server. You can (in Cisco's example, at least) create a PLAR (Private Line Auto-Ringdown) which will dial a specified number the moment the phone goes off the hook. This could lead into an extension that auto-plays a series of messages and then re-provides dial tone via a DISA application. So, in short, yes, Asterisk can do what you want if your desktop hardware understands auto-ringdowns. Even if they don't understand PLAR, you can still play a message after the user dials and before the call is actually "dialed". This is a simple matter of variable setting in the correct order. If you are using Zap hardware (analog lines going into a Digium 4-port FXS card or into a channel bank and then into a T100P card) then use the immediate= line commented on in a previous post. JT