diff options
Diffstat (limited to 'apps/app_confbridge.c')
-rw-r--r-- | apps/app_confbridge.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/app_confbridge.c b/apps/app_confbridge.c index 96d1d51d6..8c03509c9 100644 --- a/apps/app_confbridge.c +++ b/apps/app_confbridge.c @@ -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; |