Index: pbx.c =================================================================== --- pbx.c (revision 252228) +++ pbx.c (working copy) @@ -9259,6 +9259,7 @@ ast_stopstream(chan); } } + ast_copy_string(chan->context, args.context, sizeof(chan->context)); /* * If the single digit DTMF is an extension in the specified context, then @@ -9283,7 +9284,6 @@ ast_canmatch_extension(chan, args.context, exten, 1, chan->cid.cid_num) && !ast_matchmore_extension(chan, args.context, exten, 1, chan->cid.cid_num)) { snprintf(chan->exten, sizeof(chan->exten), "%c", res); - ast_copy_string(chan->context, args.context, sizeof(chan->context)); chan->priority = 0; res = 0; }