diff --git a/channels/chan_brcm.c b/channels/chan_brcm.c index 3fc58618c3a2f0e708183b6d1402aff6e0305a3d..ea2eeaa73f4fd6d63f8ed6b75f1ad918810dcae9 100644 --- a/channels/chan_brcm.c +++ b/channels/chan_brcm.c @@ -1896,9 +1896,8 @@ static void brcm_start_calling(struct brcm_subchannel *sub, char* context) { sub->channel_state = CALLING; ast_copy_string(sub->parent->ext, sub->parent->dtmfbuf, sizeof(sub->parent->ext)); - ast_copy_string(sub->parent->context, context, sizeof(sub->parent->context)); - ast_debug(1, "Calling %s@%s\n", sub->parent->ext, sub->parent->context); + ast_debug(1, "Calling %s@%s\n", sub->parent->ext, context); /* Reset the dtmf buffer */ brcm_reset_dtmf_buffer(sub->parent); @@ -1914,7 +1913,7 @@ static void brcm_start_calling(struct brcm_subchannel *sub, char* context) /* Changed state from AST_STATE_UP to AST_STATE_RING ito get the brcm_answer callback * which is needed for call waiting. */ - brcm_new(sub, AST_STATE_RING, sub->parent->ext, sub->parent->context, NULL, NULL, NULL); + brcm_new(sub, AST_STATE_RING, sub->parent->ext, context, NULL, NULL, NULL); } /*