[Asterisk-Users] Revert to dial tone?

Peter Svensson psvasterisk at psv.nu
Sun Aug 29 23:53:05 MST 2004


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




More information about the asterisk-users mailing list