2
* Asterisk -- A telephony toolkit for Linux.
4
* Application convenience functions, designed to give consistent
5
* look and feel to asterisk apps.
7
* Copyright (C) 1999, Mark Spencer
9
* Mark Spencer <markster@linux-support.net>
11
* This program is free software, distributed under the terms of
12
* the GNU General Public License
15
#ifndef _ASTERISK_APP_H
16
#define _ASTERISK_APP_H
18
#if defined(__cplusplus) || defined(c_plusplus)
21
//! Plays a stream and gets DTMF data from a channel
23
* \param c Which channel one is interacting with
24
* \param prompt File to pass to ast_streamfile (the one that you wish to play)
25
* \param s The location where the DTMF data will be stored
26
* \param maxlen Max Length of the data
27
* \param timeout Timeout length waiting for data(in milliseconds). Set to 0 for standard timeout(six seconds), or -1 for no time out.
29
* This function was designed for application programmers for situations where they need
30
* to play a message and then get some DTMF data in response to the message. If a digit
31
* is pressed during playback, it will immediately break out of the message and continue
32
* execution of your code.
34
extern int ast_app_getdata(struct ast_channel *c, char *prompt, char *s, int maxlen, int timeout);
36
#if defined(__cplusplus) || defined(c_plusplus)