[Asterisk-Users] Play Dialtone - get digits

Peter Svensson psvasterisk at psv.nu
Wed Jul 20 23:36:53 MST 2005


On Wed, 20 Jul 2005, Ed Greenberg wrote:

> I'd like to write a snippet of dialtone that plays dialtone and collects a 
> specific number of digits into a variable.
> 
> Sort of like READ but with a generated dialtone.
> 
> Naturally, I want the dialtone to stop playing after the first digit.
> 
> I can't find this anywhere.
> 
> Only thing I can think of is a no-password DISA. Is this the correct 
> method? Is there a better one?

DISA would proably work, though it may be a hassle since the call will be
sent into the disa context. Another option is to use READ with a
filecontaining a recording of the dialtone.

Peter




More information about the asterisk-users mailing list