|
|
@ -164,6 +164,8 @@ static struct ast_frame *bestdata_handle_escape(struct ast_modem_pvt *p, char es
|
|
|
|
p->fr.samples = 0;
|
|
|
|
p->fr.samples = 0;
|
|
|
|
p->fr.offset = 0;
|
|
|
|
p->fr.offset = 0;
|
|
|
|
p->fr.mallocd = 0;
|
|
|
|
p->fr.mallocd = 0;
|
|
|
|
|
|
|
|
p->fr.delivery.tv_sec = 0;
|
|
|
|
|
|
|
|
p->fr.delivery.tv_usec = 0;
|
|
|
|
if (esc)
|
|
|
|
if (esc)
|
|
|
|
ast_log(LOG_DEBUG, "Escaped character '%c'\n", esc);
|
|
|
|
ast_log(LOG_DEBUG, "Escaped character '%c'\n", esc);
|
|
|
|
|
|
|
|
|
|
|
@ -369,6 +371,8 @@ static struct ast_frame *bestdata_read(struct ast_modem_pvt *p)
|
|
|
|
p->fr.data = p->obuf;
|
|
|
|
p->fr.data = p->obuf;
|
|
|
|
p->fr.datalen = p->obuflen;
|
|
|
|
p->fr.datalen = p->obuflen;
|
|
|
|
p->fr.mallocd = 0;
|
|
|
|
p->fr.mallocd = 0;
|
|
|
|
|
|
|
|
p->fr.delivery.tv_sec = 0;
|
|
|
|
|
|
|
|
p->fr.delivery.tv_usec = 0;
|
|
|
|
p->fr.offset = AST_FRIENDLY_OFFSET;
|
|
|
|
p->fr.offset = AST_FRIENDLY_OFFSET;
|
|
|
|
p->fr.src = __FUNCTION__;
|
|
|
|
p->fr.src = __FUNCTION__;
|
|
|
|
if (option_debug)
|
|
|
|
if (option_debug)
|
|
|
|