O'Reilly logo

Asterisk: The Future of Telephony by Leif Madsen, Jared Smith, Jim Van Meggelen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SendText() — Sends text to the channel

Synopsis

    SendText(text)

Sends text on a channel, if text transport is supported. If the channel does not support text transport, and there exists a priority n+101 (where n is the current priority), execution will continue at that step. Otherwise, execution will continue at the next priority level.

Returns 0 if the text was sent correctly or if the channel does not support text transport; otherwise, returns -1.

               exten => 123,1,SendText(Welcome to Asterisk)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required