diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 46830c5289684fc785640dab7f0c3b212e3da649..1eadea3e69b9fd339f21fea15766244abca27642 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -8237,7 +8237,7 @@ static void *pri_dchannel(void *vpri) snprintf(calledtonstr, sizeof(calledtonstr)-1, "%d", e->ring.calledplan); pbx_builtin_setvar_helper(c, "CALLEDTON", calledtonstr); if (e->ring.redirectingreason >= 0) - pbx_builtin_setvar_helper(c, "PRIREDIRECTCAUSE", redirectingreason2str(e->ring.redirectingreason)); + pbx_builtin_setvar_helper(c, "PRIREDIRECTREASON", redirectingreason2str(e->ring.redirectingreason)); ast_mutex_lock(&pri->lock); if (c && !ast_pthread_create(&threadid, &attr, ss_thread, c)) {