Receives a string text on a channel.
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.
Returns:
failure, hangup, or timeout: 200 result=-1
success: 200 result=<text>
<text> is the text received on the channel.
See also
- Asterisk cmd SendText includes an example for "receive text"
- Asterisk SIP Messaging: Patch for receiving SIP/SIMPLE messages (proof-of-concept)
- Asterisk cmd SMS
Go back to Asterisk AGI
Page Changes
Format of return
So the reply includes a result code and then the TDD text in parentheses. See "show agi receive text" in the console.