Added layer1 hold feature. Requires new mISDN and mISDNuser package from git.
[lcr.git] / action.cpp
index d0a1c9f..080e8f6 100644 (file)
@@ -1503,7 +1503,7 @@ void EndpointAppPBX::action_dialing_calculator(void)
        struct port_list *portlist = ea_endpoint->ep_portlist;
        struct lcr_msg *message;
        double value1, value2, v, sign1;
-       int komma1, komma2, k, state, mode, first;
+       int komma1, komma2, k, state, mode = 0, first;
        char *p;
 
        portlist = ea_endpoint->ep_portlist;
@@ -2227,7 +2227,7 @@ void EndpointAppPBX::process_dialing(void)
 
 //PDEBUG(~0, "HANG-BUG-DEBUGGING: before action-timeout processing\n");
        /* process timeout */
-       if (e_action_timeout)
+       if (e_action && e_action_timeout) /* e_action may be NULL, but e_action_timeout may still be set and must be ignored */
        {
                e_action_timeout = 0;
                if (e_state == EPOINT_STATE_CONNECT)