76{
77 int res;
78 double fraction;
79 long seconds;
80 struct timeval future = { 0, };
82 int msec;
83
87 return 0;
88 }
89
90 if (sscanf(data, "%30ld%30lf", &seconds, &fraction) == 0) {
93 return 0;
94 }
95
96 future.tv_sec = seconds;
97 future.tv_usec = fraction * 1000000;
98
100 ast_log(
LOG_NOTICE,
"WaitUntil called in the past (now %ld, arg %ld)\n", (
long)now.tv_sec, (
long)future.tv_sec);
102 return 0;
103 }
104
107 else
109
110 return res;
111}
int ast_safe_sleep(struct ast_channel *chan, int ms)
Wait for a specified amount of time, looking for hangups.
int pbx_builtin_setvar_helper(struct ast_channel *chan, const char *name, const char *value)
Add a variable to the channel variable stack, removing the most recently set value for the same name.
static force_inline int attribute_pure ast_strlen_zero(const char *s)
int64_t ast_tvdiff_ms(struct timeval end, struct timeval start)
Computes the difference (in milliseconds) between two struct timeval instances.
struct timeval ast_tvnow(void)
Returns current timeval. Meant to replace calls to gettimeofday().