[Asterisk-Users] generate dial tone

Kevin Walsh kevin at cursor.biz
Fri May 28 04:11:32 MST 2004


Michael George [george at auroravideosys.com] wrote:
> I get the 9 and start PlayTones().
> I go to the next context (with the tones playing).
> 
> In the next context (tones still playing) my matches are all several
> digits long, so the tone is playing as the digits are pressed.  That is
> disorienting because that usually happens on a broken line.
> 
> However, if you notice how Background() works, it will play the sound
> file and still accept input.  Once it gets the first input key it will
> stop playing and begin its matching.
> 
> That is exactly the behavior I want.
> 
> Now, I thought I could do playtones() and then match the just first
> input number (0, 1, or N).  On 0, 1 or N (in separate extensions, of
> course), I would stopplaytones() and then goto() the next context
> (international, long distance, local -- respectively).
> 
> The int and ld contexts are straightforward, but the new local context
> needs to know which extension was dialed (the 'N') to complete the
> calling.  I tried that yesterday and got frustrated at the resulting
> complexity of trying to do such a simple and inconsequential thing.  I
> figured that the cost outweighed the benefit and I need to get this
> prototype going so that we can move into full launch.
> 
> This dialtone issue needs to become a tier 2 or tier 3 feature.
> 
Have you not looked at the DISA application (command) yet?  That seems
to me to be a much better solution to your problem.

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin at cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/




More information about the asterisk-users mailing list