|
14 | 14 |
|
15 | 15 | #include <sys/types.h>
|
16 | 16 | #include <stdio.h>
|
17 |
| -#include <asterisk.h> |
18 |
| -#include <asterisk/file.h> |
19 |
| -#include <asterisk/logger.h> |
20 |
| -#include <asterisk/channel.h> |
21 |
| -#include <asterisk/pbx.h> |
22 |
| -#include <asterisk/module.h> |
23 |
| -#include <asterisk/pbx.h> |
24 |
| -#include <asterisk/md5.h> |
25 |
| -#include <asterisk/config.h> |
| 17 | +#include "asterisk.h" |
| 18 | +#include "asterisk/file.h" |
| 19 | +#include "asterisk/logger.h" |
| 20 | +#include "asterisk/channel.h" |
| 21 | +#include "asterisk/pbx.h" |
| 22 | +#include "asterisk/module.h" |
| 23 | +#include "asterisk/pbx.h" |
| 24 | +#include "asterisk/md5.h" |
| 25 | +#include "asterisk/config.h" |
26 | 26 | #include <ctype.h>
|
27 | 27 | #include <stdlib.h>
|
28 | 28 | #include <unistd.h>
|
@@ -212,7 +212,7 @@ static int get_input_text(struct ast_channel *chan, const char *variable_name, c
|
212 | 212 | }
|
213 | 213 | /*endif*/
|
214 | 214 |
|
215 |
| - original_read_fmt = chan->readformat; |
| 215 | + ast_format_copy(&original_read_fmt, ast_channel_readformat(chan)); |
216 | 216 | if (original_read_fmt.id != AST_FORMAT_SLINEAR)
|
217 | 217 | {
|
218 | 218 | res = ast_set_read_format_by_id(chan, AST_FORMAT_SLINEAR);
|
@@ -520,7 +520,7 @@ static int dtmftotext_exec(struct ast_channel *chan, const char *data)
|
520 | 520 | imax_time = atoi(max_time);
|
521 | 521 | if (variable_name && initial_digits)
|
522 | 522 | {
|
523 |
| - if (chan->_state != AST_STATE_UP) |
| 523 | + if (ast_channel_state(chan) != AST_STATE_UP) |
524 | 524 | {
|
525 | 525 | /* Shouldn't need this, but checking to see if channel is already answered
|
526 | 526 | * Theoretically asterisk should already have answered before running the app */
|
|
0 commit comments