diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-04 14:05:12 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-11-04 14:05:12 +0000 |
commit | 3bacd4082e2d3a2dd5b8b13635df956aa4f415cd (patch) | |
tree | dd3bc244b8a45aacb932109dc8c12d1f21769d55 /channels/chan_local.c | |
parent | 1d3ce2ae5f81e30ec0704efe840bc2c9a24c7e8a (diff) |
Expand codec bitfield from 32 bits to 64 bits.
Reviewboard: https://reviewboard.asterisk.org/r/416/
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@227580 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r-- | channels/chan_local.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c index c699a5cba..f26084b49 100644 --- a/channels/chan_local.c +++ b/channels/chan_local.c @@ -60,7 +60,7 @@ static struct ast_jb_conf g_jb_conf = { .impl = "", }; -static struct ast_channel *local_request(const char *type, int format, const struct ast_channel *requestor, void *data, int *cause); +static struct ast_channel *local_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause); static int local_digit_begin(struct ast_channel *ast, char digit); static int local_digit_end(struct ast_channel *ast, char digit, unsigned int duration); static int local_call(struct ast_channel *ast, char *dest, int timeout); @@ -273,7 +273,7 @@ static int local_answer(struct ast_channel *ast) isoutbound = IS_OUTBOUND(ast, p); if (isoutbound) { /* Pass along answer since somebody answered us */ - struct ast_frame answer = { AST_FRAME_CONTROL, AST_CONTROL_ANSWER }; + struct ast_frame answer = { AST_FRAME_CONTROL, { AST_CONTROL_ANSWER } }; res = local_queue_frame(p, isoutbound, &answer, ast, 1); } else ast_log(LOG_WARNING, "Huh? Local is being asked to answer?\n"); @@ -443,7 +443,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da } else { f.datalen = ast_redirecting_build_data(frame_data, sizeof(frame_data), &this_channel->redirecting); } - f.subclass = condition; + f.subclass.integer = condition; f.data.ptr = frame_data; if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) { ast_mutex_unlock(&p->lock); @@ -455,7 +455,7 @@ static int local_indicate(struct ast_channel *ast, int condition, const void *da /* Queue up a frame representing the indication as a control frame */ ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); - f.subclass = condition; + f.subclass.integer = condition; f.data.ptr = (void*)data; f.datalen = datalen; if (!(res = local_queue_frame(p, isoutbound, &f, ast, 1))) @@ -477,7 +477,7 @@ static int local_digit_begin(struct ast_channel *ast, char digit) ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); - f.subclass = digit; + f.subclass.integer = digit; if (!(res = local_queue_frame(p, isoutbound, &f, ast, 0))) ast_mutex_unlock(&p->lock); @@ -496,7 +496,7 @@ static int local_digit_end(struct ast_channel *ast, char digit, unsigned int dur ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); - f.subclass = digit; + f.subclass.integer = digit; f.len = duration; if (!(res = local_queue_frame(p, isoutbound, &f, ast, 0))) ast_mutex_unlock(&p->lock); @@ -535,7 +535,7 @@ static int local_sendhtml(struct ast_channel *ast, int subclass, const char *dat ast_mutex_lock(&p->lock); isoutbound = IS_OUTBOUND(ast, p); - f.subclass = subclass; + f.subclass.integer = subclass; f.data.ptr = (char *)data; f.datalen = datalen; if (!(res = local_queue_frame(p, isoutbound, &f, ast, 0))) @@ -646,7 +646,7 @@ static int local_hangup(struct ast_channel *ast) { struct local_pvt *p = ast->tech_pvt; int isoutbound; - struct ast_frame f = { AST_FRAME_CONTROL, AST_CONTROL_HANGUP, .data.uint32 = ast->hangupcause }; + struct ast_frame f = { AST_FRAME_CONTROL, { AST_CONTROL_HANGUP }, .data.uint32 = ast->hangupcause }; struct ast_channel *ochan = NULL; int glaredetect = 0, res = 0; @@ -857,7 +857,7 @@ static struct ast_channel *local_new(struct local_pvt *p, int state, const char } /*! \brief Part of PBX interface */ -static struct ast_channel *local_request(const char *type, int format, const struct ast_channel *requestor, void *data, int *cause) +static struct ast_channel *local_request(const char *type, format_t format, const struct ast_channel *requestor, void *data, int *cause) { struct local_pvt *p = NULL; struct ast_channel *chan = NULL; |