On Tue, 2006-06-20 at 12:51 -0600, Trevan Richins wrote:
> I have an asterisk server setup and am wondering how you did the
> "press 2 to ring my office"?  I know how to get this working with a
> voice menu where when they call the phone number, it says a nice
> message to tell them to press 2 otherwise wait for the main number.
> Is that how you did it, or is it more transparent?

It's used with IVR.  I announce it to people because I want them to know
that the option exists.

I've never done it the other way, but this should get you started:

voip-info.org wiki:
** How to Accept DTMF Keypresses While Waiting **
The Wait command will ignore any DTMF input from buttons pressed by
callers on the line. If you want to accept DTMF input while waiting, set
the wait time by calling ResponseTimeout and do not define a step at the
next highest priority. Asterisk will silently wait up to ResponseTimeout
seconds for the user to dial an extension number valid in the current
context.

In other words, don't use the Wait command like you would expect.  This
is wrong:

[ringing-inbound] ;; Calls come in here.
        include => MyExtens
        exten => s,1,Ringing()
        exten => s,2,Wait(10)

You won't get any DTMF.  It might look a bit more like this:

[ringing-inbound] ;; Calls come in here.
        include => MyExtens
        exten => s,1,Ringing()
        exten => s,2,Set(TIMEOUT(response)=10)
        ....

Let us know if you get it working.  If you can't, curiosity will force
me to figure it out.

-- 
Gabriel Gunderson
http://gundy.org


--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to