I am wondering if it is possible for an extension that is served by a zaptel device to revert to dial tone once a call disconnects. For instance, if I make a call to another extension, talk with them, and THEY hang up, can I then be presented with a new dial tone rather than a congestion tone? Further, can an extension be set up so that, once the call goes back to dial tone, if the user does NOT dial any digits within a timeout period, + the PBX will return 30 seconds of congestion tone, and then + the PBX will return 60 seconds of "howler" tone, and then + the extension is 'locked out.' ? Thanks.
On Sun, 29 Aug 2004, Greg Blakely wrote:> I am wondering if it is possible for an extension that is served by a > zaptel device to revert to dial tone once a call disconnects. > > For instance, if I make a call to another extension, talk with them, and > THEY hang up, can I then be presented with a new dial tone rather than a > congestion tone?Read the documentation for the Dial command, specifically the 'g' option. Place a DISA command (with no password) as the next priority in the context.> Further, can an extension be set up so that, once the call goes back to > dial tone, if the user does NOT dial any digits within a timeout period, > > + the PBX will return 30 seconds of congestion tone, and then > + the PBX will return 60 seconds of "howler" tone, and then > + the extension is 'locked out.'With some timeouts in the context called from the disa application and a chain of contexts (one for each timeout) this should be doable. I'm not sure what you mean by "locking out". For a permanent lock you will need to store that information in the AstDB or an external database. Otherwise just Wait(). Peter
Thanks. That appears to work, but it doesn't appear to work with voicemail. From what I can see, the next priority can be taken up either with the DISA command or the unavailable voicemail command. Any way of separating the two?> Read the documentation for the Dial command, specifically the > 'g' option. > Place a DISA command (with no password) as the next priority > in the context. >
Thanks. That did the trick. This is what I ended up with (on extension 45) exten => 45,1,Dial(Zap/44r1,30,g) exten => 45,2,System(test "${DIALSTATUS}" = "NOANSWER") exten => 45,3,GotoIf($[${DIALSTATUS} = NOANSWER]?4:6) exten => 45,4,voicemail(u10) exten => 45,5,Hangup exten => 45,6,DISA(no-password|internal) exten => 45,7,NoOp exten => 45,102,voicemail(b10) exten => 45,103,Hangup ;> -----Original Message----- > From: asterisk-users-bounces@lists.digium.com > [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of > Peter Svensson > Sent: Monday, August 30, 2004 1:09 PM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: RE: [Asterisk-Users] Revert to dial tone? > > On Mon, 30 Aug 2004, Greg Blakely wrote: > > > Thanks. That appears to work, but it doesn't appear to work with > > voicemail. From what I can see, the next priority can be taken up > > either with the DISA command or the unavailable voicemail command. > > > > Any way of separating the two? > > Hm, I guess you want to do different things depending on the > reason for terminating the Dial command? I think there is a > variable "DIALSTATUS" > that you can test in the dialplan. > > Peter > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > >