git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9899
d0543943-73ff-0310-b7d9-
9358b9ac24b2
*/
SWITCH_DECLARE(uint32_t) switch_core_session_count(void);
+SWITCH_DECLARE(uint32_t) switch_core_session_get_id(switch_core_session_t *session);
+
/*!
\brief Provide the current session_id
\return the total number of allocated sessions since core startup
return session_manager.session_count;
}
+SWITCH_DECLARE(uint32_t) switch_core_session_get_id(switch_core_session_t *session)
+{
+ return session->id;
+}
+
SWITCH_DECLARE(switch_size_t) switch_core_session_id(void)
{
return session_manager.session_id;
sent_ring = 1;
}
/* When the AND operator is being used, and fail_on_single_reject is set, a hangup indicates that the call should fail. */
+
if ((to = (uint8_t) ((switch_timestamp(NULL) - start) >= (time_t) timelimit_sec))
|| (fail_on_single_reject && hups)) {
idx = IDX_TIMEOUT;
}
} else {
- switch_yield(1000);
+ switch_yield(10000);
}
-
+
}
notready: