From: Jeff Lenk Date: Sat, 13 Apr 2013 17:20:15 +0000 (-0500) Subject: FS-5290 --resolve X-Git-Tag: v1.2.13~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0929e126304f3697ea9977e135d7e982ef4186dc;p=thirdparty%2Ffreeswitch.git FS-5290 --resolve --- diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 39290f78e7..d3fb1a23fe 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -85,8 +85,8 @@ static switch_status_t exec_app(switch_core_session_t *session, const char *app, #define check_tz() \ do { \ - tzoff = switch_event_get_header((switch_event_t *)channel, "tod_tz_offset"); \ - tzname = switch_event_get_header((switch_event_t *)channel, "timezone"); \ + tzoff = switch_channel_get_variable(channel, "tod_tz_offset"); \ + tzname = switch_channel_get_variable(channel, "timezone"); \ if (!zstr(tzoff) && switch_is_number(tzoff)) { \ offset = atoi(tzoff); \ break; \