Skip to content

ReceiveText()

Synopsis

Receive a Text Message on a channel.

Description

Waits for timeout seconds on the current channel to receive text.

Result of transmission will be stored in the following variables:

  • RECEIVETEXTMESSAGE - The received text message.

  • RECEIVETEXTSTATUS

    • SUCCESS - Transmission succeeded.

    • FAILURE - Transmission failed or timed out.

      Example: Receive message on channel
      same => n,ReceiveText()
      same => n,NoOp(${RECEIVETEXTMESSAGE})
      

Syntax

ReceiveText([timeout])
Arguments
  • timeout - Time in seconds to wait for text. Default is 0 (forever).

See Also

Generated Version

This documentation was generated from Asterisk branch certified/20.7 using version GIT