diff options
Diffstat (limited to 'channels/chan_phone.c')
-rw-r--r-- | channels/chan_phone.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/channels/chan_phone.c b/channels/chan_phone.c index 4a4629009..cf68d1d7f 100644 --- a/channels/chan_phone.c +++ b/channels/chan_phone.c @@ -293,11 +293,10 @@ static int phone_call(struct ast_channel *ast, char *dest, int timeout) struct phone_pvt *p; PHONE_CID cid; - time_t UtcTime; - struct tm tm; + struct timeval UtcTime = ast_tvnow(); + struct ast_tm tm; int start; - time(&UtcTime); ast_localtime(&UtcTime, &tm, NULL); memset(&cid, 0, sizeof(PHONE_CID)); |