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

STREAM FILE

Synopsis

STREAM FILE filename escape_digits [sample_offset]

Play the audio file indicated by filename, allowing playback to be interrupted by the digits specified by escape_digits, if any. Use double quotes for the digits if you wish none to be permitted. If sample_offset is provided, the audio will seek to sample_offset before playback starts.

Remember, the file extension must not be included in the filename.

Return values:

0

Playback completed with no digit pressed

-1

Error or hangup

value

ASCII value of digit (if pressed), in decimal

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