]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5290 --resolve
authorJeff Lenk <jeff@jefflenk.com>
Sat, 13 Apr 2013 17:20:15 +0000 (12:20 -0500)
committerTravis Cross <tc@traviscross.com>
Fri, 7 Jun 2013 07:26:17 +0000 (07:26 +0000)
src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

index 39290f78e795de54ed3eb40937beef62f0d2f0f6..d3fb1a23fe9fb4933a760fb6e8c1b3be426bc18a 100644 (file)
@@ -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;                                                                                                          \