We have need of a ringdown circuit in an elevator. If someone picks up the phone, it should dial another extension without any keys being pressed. (There are no keys on the phone) If it was an incoming call to asterisk, the following lines in extensions.conf would do the trick. exten => s,1,Answer exten => s,2,Dial,Zap/10 However, the 's' state is not valid for just picking up a phone (extension). With nothing being dialed there are no extension matches to make. It is like the dial tone needs to time out in a very short time and instead of getting the busy tone, asterisk should dial an extension. Anyway, I have not figured it out. Suggestions? Don Pobanz
You have to add immediate=yes to zapata.conf to the declaration of this channel. Then right after someone picks up the phone asterisk will just right to 's' extension of the specified context. regards Martin On Tue, 18 Mar 2003, Don Pobanz wrote:> We have need of a ringdown circuit in an elevator. If someone picks up > the phone, it should dial another extension without any keys being > pressed. (There are no keys on the phone) > > If it was an incoming call to asterisk, the following lines in > extensions.conf would do the trick. > exten => s,1,Answer > exten => s,2,Dial,Zap/10 > > However, the 's' state is not valid for just picking up a phone > (extension). With nothing being dialed there are no extension matches > to make. It is like the dial tone needs to time out in a very short > time and instead of getting the busy tone, asterisk should dial an > extension. > > Anyway, I have not figured it out. Suggestions? > > Don Pobanz > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
set it to immediate mode in zapata.conf I have a door phone (real phone but keypad ignored) that does exactly the same thing. At 09:04 AM 3/18/2003 -0600, you wrote:>We have need of a ringdown circuit in an elevator. If someone picks up >the phone, it should dial another extension without any keys being >pressed. (There are no keys on the phone) > >If it was an incoming call to asterisk, the following lines in >extensions.conf would do the trick. >exten => s,1,Answer >exten => s,2,Dial,Zap/10 > >However, the 's' state is not valid for just picking up a phone >(extension). With nothing being dialed there are no extension matches >to make. It is like the dial tone needs to time out in a very short >time and instead of getting the busy tone, asterisk should dial an >extension. > >Anyway, I have not figured it out. Suggestions? > >Don Pobanz >_______________________________________________ >Asterisk-Users mailing list >Asterisk-Users@lists.digium.com >http://lists.digium.com/mailman/listinfo/asterisk-users
use immediate=yes in zapata.conf matteo Il mar, 2003-03-18 alle 16:04, Don Pobanz ha scritto:> We have need of a ringdown circuit in an elevator. If someone picks up > the phone, it should dial another extension without any keys being > pressed. (There are no keys on the phone) > > If it was an incoming call to asterisk, the following lines in > extensions.conf would do the trick. > exten => s,1,Answer > exten => s,2,Dial,Zap/10 > > However, the 's' state is not valid for just picking up a phone > (extension). With nothing being dialed there are no extension matches > to make. It is like the dial tone needs to time out in a very short > time and instead of getting the busy tone, asterisk should dial an > extension. > > Anyway, I have not figured it out. Suggestions? > > Don Pobanz > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users
On Tuesday 18 March 2003 09:04, Don Pobanz wrote:> We have need of a ringdown circuit in an elevator. If someone > picks up the phone, it should dial another extension without > any keys being pressed. (There are no keys on the phone) > > If it was an incoming call to asterisk, the following lines in > extensions.conf would do the trick. > exten => s,1,Answer > exten => s,2,Dial,Zap/10 > > However, the 's' state is not valid for just picking up a > phone (extension). With nothing being dialed there are no > extension matches to make. It is like the dial tone needs to > time out in a very short time and instead of getting the busy > tone, asterisk should dial an extension. > > Anyway, I have not figured it out. Suggestions?Put that channel into a different context in zapata.conf, where immediate=yes (i.e. don't provide dialtone), then set up the context with extension s, as you specified above. -Tilghman
On Tue, 2003-03-18 at 09:04, Don Pobanz wrote:> We have need of a ringdown circuit in an elevator. If someone picks up > the phone, it should dial another extension without any keys being > pressed. (There are no keys on the phone) > > If it was an incoming call to asterisk, the following lines in > extensions.conf would do the trick. > exten => s,1,Answer > exten => s,2,Dial,Zap/10 > > However, the 's' state is not valid for just picking up a phone > (extension). With nothing being dialed there are no extension matches > to make. It is like the dial tone needs to time out in a very short > time and instead of getting the busy tone, asterisk should dial an > extension.in /etc/asterisk/zapata.conf, I think this is what you are looking for. ; ; Specify whether the channel should be answered immediately or ; if the simple switch should provide dialtone, read digits, etc. ; immediate=no -- Steven Critchfield <critch@basesys.com>
that's what immediate mode does for FXO signalled interfaces in /etc/asterisk/zapata.conf. In immediate mode, as soon as the phone goes off hook, it starts at the "s" extension. mark On Tue, 18 Mar 2003, Don Pobanz wrote:> We have need of a ringdown circuit in an elevator. If someone picks up > the phone, it should dial another extension without any keys being > pressed. (There are no keys on the phone) > > If it was an incoming call to asterisk, the following lines in > extensions.conf would do the trick. > exten => s,1,Answer > exten => s,2,Dial,Zap/10 > > However, the 's' state is not valid for just picking up a phone > (extension). With nothing being dialed there are no extension matches > to make. It is like the dial tone needs to time out in a very short > time and instead of getting the busy tone, asterisk should dial an > extension. > > Anyway, I have not figured it out. Suggestions? > > Don Pobanz > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users >
That worked. I had tried setting immediate with some other settings but I guess never to 'yes'. Thanks Tilghman. Don Pobanz On Tuesday, March 18, 2003 9:55 AM, Tilghman Lesher [SMTP:tilghman@mail.jeffandtilghman.com] wrote:> On Tuesday 18 March 2003 09:04, Don Pobanz wrote: > > We have need of a ringdown circuit in an elevator. If someone > > picks up the phone, it should dial another extension without > > any keys being pressed. (There are no keys on the phone) > > > > If it was an incoming call to asterisk, the following lines in > > extensions.conf would do the trick. > > exten => s,1,Answer > > exten => s,2,Dial,Zap/10 > > > > However, the 's' state is not valid for just picking up a > > phone (extension). With nothing being dialed there are no > > extension matches to make. It is like the dial tone needs to > > time out in a very short time and instead of getting the busy > > tone, asterisk should dial an extension. > > > > Anyway, I have not figured it out. Suggestions? > > Put that channel into a different context in zapata.conf, where > immediate=yes (i.e. don't provide dialtone), then set up the > context with extension s, as you specified above. > > -Tilghman > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users