Name

RECEIVE CHAR

Synopsis

RECEIVE CHAR timeout

Receives a character of text on a channel. Specify a timeout in milliseconds as the maximum amount of time to wait for input, or set to 0 to wait infinitely. Note that most channels do not support the reception of text.

Return values:

-1 (hangup)

Failure or hangup

char (timeout)

Timeout

value

ASCII value of character, in decimal

Get Asterisk: The Future of Telephony, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.