X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=blobdiff_plain;f=action.cpp;h=514c01600c5de1213b8334ee8c8874c23f3c90af;hp=478406d448b75bd037db4e51a889833213c82337;hb=863bc6421940efe897dfd6d610e1f86ed9992cf6;hpb=8b70a9a5c2071c587ab4016dcbbb8e4bbf6da181 diff --git a/action.cpp b/action.cpp index 478406d..514c016 100644 --- a/action.cpp +++ b/action.cpp @@ -2283,11 +2283,12 @@ void EndpointAppPBX::process_dialing(int timeout) } gettimeofday(¤t_time, NULL); - if (timeout && TIME_SMALLER(&e_match_timeout.timeout, ¤t_time)) { + if (e_match_to_action && TIME_SMALLER(&e_match_timeout.timeout, ¤t_time)) { /* return timeout rule */ PDEBUG(DEBUG_EPOINT, "EPOINT(%d): terminal '%s' dialing: '%s', timeout in ruleset '%s'\n", ea_endpoint->ep_serial, e_ext.number, e_dialinginfo.id, e_ruleset->name); unsched_timer(&e_match_timeout); e_action = e_match_to_action; + e_match_to_action = NULL; e_extdialing = e_match_to_extdialing; trace_header("ROUTING (timeout)", DIRECTION_NONE); add_trace("action", NULL, "%s", action_defs[e_action->index].name);