From: Anthony Minessale Date: Mon, 16 Apr 2012 16:57:19 +0000 (-0500) Subject: FS-4053 --resolve X-Git-Tag: v1.2-rc1~17^2~216 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e512f1a898a2d0aa3f8872a1c60aa4d7ffec157;p=thirdparty%2Ffreeswitch.git FS-4053 --resolve --- diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index cfcebdab01..a103b86302 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -495,7 +495,7 @@ switch_status_t sofia_on_hangup(switch_core_session_t *session) val = switch_channel_get_variable(tech_pvt->channel, "disable_q850_reason"); if (!val || switch_false(val)) { - if ((val = switch_channel_get_variable(tech_pvt->channel, "sip_reason_str"))) { + if ((val = switch_channel_get_variable(tech_pvt->channel, "sip_reason"))) { switch_snprintf(reason, sizeof(reason), "%s", val); } else { if (switch_channel_test_flag(channel, CF_INTERCEPT) || cause == SWITCH_CAUSE_PICKED_OFF || cause == SWITCH_CAUSE_LOSE_RACE) {