Index: pbx.c =================================================================== --- pbx.c (revision 48373) +++ pbx.c (working copy) @@ -5082,6 +5082,10 @@ ast_set_variables(chan, vars); if (account) ast_cdr_setaccount(chan, account); + if (context) + pbx_builtin_setvar_helper(chan, "ORIG_CONTEXT", context); + if (exten) + pbx_builtin_setvar_helper(chan, "ORIG_EXTEN", exten); ast_pbx_run(chan); } else ast_log(LOG_WARNING, "Can't allocate the channel structure, skipping execution of extension 'failed'\n");