mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@556 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -320,7 +320,7 @@ static struct ast_frame *phone_exception(struct ast_channel *ast)
|
||||
|
||||
/* Some nice norms */
|
||||
p->fr.datalen = 0;
|
||||
p->fr.timelen = 0;
|
||||
p->fr.samples = 0;
|
||||
p->fr.data = NULL;
|
||||
p->fr.src = type;
|
||||
p->fr.offset = 0;
|
||||
@@ -381,7 +381,7 @@ static struct ast_frame *phone_read(struct ast_channel *ast)
|
||||
|
||||
/* Some nice norms */
|
||||
p->fr.datalen = 0;
|
||||
p->fr.timelen = 0;
|
||||
p->fr.samples = 0;
|
||||
p->fr.data = NULL;
|
||||
p->fr.src = type;
|
||||
p->fr.offset = 0;
|
||||
@@ -415,6 +415,7 @@ static struct ast_frame *phone_read(struct ast_channel *ast)
|
||||
res = 4;
|
||||
break;
|
||||
}
|
||||
p->fr.samples = 240;
|
||||
p->fr.datalen = res;
|
||||
p->fr.frametype = AST_FRAME_VOICE;
|
||||
p->fr.subclass = p->lastinput;
|
||||
@@ -630,6 +631,8 @@ static struct ast_channel *phone_new(struct phone_pvt *i, int state, char *conte
|
||||
strncpy(tmp->context, context, sizeof(tmp->context)-1);
|
||||
if (strlen(i->ext))
|
||||
strncpy(tmp->exten, i->ext, sizeof(tmp->exten)-1);
|
||||
else
|
||||
strncpy(tmp->exten, "s", sizeof(tmp->exten) - 1);
|
||||
if (strlen(i->language))
|
||||
strncpy(tmp->language, i->language, sizeof(tmp->language)-1);
|
||||
if (strlen(i->callerid))
|
||||
|
Reference in New Issue
Block a user