Receive Text

Since 1.2.0 AGI Commands Found this useful? Upvote it. ×

Receives text from channels supporting it.

Last reviewed 2026-04-14

receive text timeout
Description

Receives a string of text on a channel. Most channels do not support the reception of text. Returns -1 for failure or 1 for success, and the string in parenthesis.

Arguments
  • timeout required - The timeout to be the maximum time to wait for input in milliseconds, or 0 for infinite.

User Notes

No notes yet. Be the first to contribute a tip or example.

Contribute a note

Share a tip, gotcha, or practical example. Keep it under 2000 characters. No questions (use the Asterisk community forums for support). Wrap code in backticks.

Moderated before publishing. Email never shown.