receive char

Usage: RECEIVE CHAR <timeout>

Receives a character of text on a channel, and discards any further characters after the first one waiting.

Specify <timeout> to be the maximum time to wait for input in milliseconds, or 0 for infinite.

Most channels do not support the reception of text. See Asterisk Text for details.

failure or hangup: 200 result=-1 (hangup)
timeout: 200 result=<char> (timeout)
success: 200 result=<char>

<char> is the character received, or 0 if the channel does not support text reception.

Go back to Asterisk AGI
Created by: pinhole, Last modification: Fri 01 of Jul, 2005 (14:15 UTC) by SarahEmm
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+