mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Opaquify char * and char[] in ast_channel
Review: https://reviewboard.asterisk.org/r/1733/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354968 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1727,15 +1727,15 @@ static int action_dialplan_exec(struct ast_bridge_channel *bridge_channel, struc
|
||||
ast_channel_lock(bridge_channel->chan);
|
||||
|
||||
/*save off*/
|
||||
exten = ast_strdupa(bridge_channel->chan->exten);
|
||||
context = ast_strdupa(bridge_channel->chan->context);
|
||||
exten = ast_strdupa(ast_channel_exten(bridge_channel->chan));
|
||||
context = ast_strdupa(ast_channel_context(bridge_channel->chan));
|
||||
priority = bridge_channel->chan->priority;
|
||||
pbx = bridge_channel->chan->pbx;
|
||||
bridge_channel->chan->pbx = NULL;
|
||||
|
||||
/*set new*/
|
||||
ast_copy_string(bridge_channel->chan->exten, menu_action->data.dialplan_args.exten, sizeof(bridge_channel->chan->exten));
|
||||
ast_copy_string(bridge_channel->chan->context, menu_action->data.dialplan_args.context, sizeof(bridge_channel->chan->context));
|
||||
ast_channel_exten_set(bridge_channel->chan, menu_action->data.dialplan_args.exten);
|
||||
ast_channel_context_set(bridge_channel->chan, menu_action->data.dialplan_args.context);
|
||||
bridge_channel->chan->priority = menu_action->data.dialplan_args.priority;
|
||||
|
||||
ast_channel_unlock(bridge_channel->chan);
|
||||
@@ -1746,8 +1746,8 @@ static int action_dialplan_exec(struct ast_bridge_channel *bridge_channel, struc
|
||||
/*restore*/
|
||||
ast_channel_lock(bridge_channel->chan);
|
||||
|
||||
ast_copy_string(bridge_channel->chan->exten, exten, sizeof(bridge_channel->chan->exten));
|
||||
ast_copy_string(bridge_channel->chan->context, context, sizeof(bridge_channel->chan->context));
|
||||
ast_channel_exten_set(bridge_channel->chan, exten);
|
||||
ast_channel_context_set(bridge_channel->chan, context);
|
||||
bridge_channel->chan->priority = priority;
|
||||
bridge_channel->chan->pbx = pbx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user