mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
complete the coding style changes for these frame structures
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@39832 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -278,10 +278,13 @@ static void __oh323_update_info(struct ast_channel *c, struct oh323_pvt *pvt)
|
|||||||
pvt->newcontrol = -1;
|
pvt->newcontrol = -1;
|
||||||
}
|
}
|
||||||
if (pvt->newdigit >= 0) {
|
if (pvt->newdigit >= 0) {
|
||||||
struct ast_frame f = {AST_FRAME_DTMF, pvt->newdigit, };
|
struct ast_frame f = {
|
||||||
|
.frametype = AST_FRAME_DTMF,
|
||||||
|
.subclass = pvt->newdigit,
|
||||||
|
.samples = 800,
|
||||||
|
.src = "UPDATE_INFO",
|
||||||
|
};
|
||||||
|
|
||||||
f.samples = 800;
|
|
||||||
f.src = "UPDATE_INFO";
|
|
||||||
ast_queue_frame(c, &f);
|
ast_queue_frame(c, &f);
|
||||||
pvt->newdigit = -1;
|
pvt->newdigit = -1;
|
||||||
}
|
}
|
||||||
@@ -1158,9 +1161,13 @@ int send_digit(unsigned call_reference, char digit, const char *token)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (pvt->owner && !ast_mutex_trylock(&pvt->owner->lock)) {
|
if (pvt->owner && !ast_mutex_trylock(&pvt->owner->lock)) {
|
||||||
struct ast_frame f = {AST_FRAME_DTMF, digit, };
|
struct ast_frame f = {
|
||||||
f.samples = 800;
|
.frametype = AST_FRAME_DTMF,
|
||||||
f.src = "SEND_DIGIT";
|
.subclass = digit,
|
||||||
|
.samples = 800,
|
||||||
|
.src = "SEND_DIGIT",
|
||||||
|
};
|
||||||
|
|
||||||
res = ast_queue_frame(pvt->owner, &f);
|
res = ast_queue_frame(pvt->owner, &f);
|
||||||
ast_mutex_unlock(&pvt->owner->lock);
|
ast_mutex_unlock(&pvt->owner->lock);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user