mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Add date/time to IAX2 register
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1755 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3573,6 +3573,7 @@ static int update_registry(char *name, struct sockaddr_in *sin, int callno)
|
||||
p->expire = ast_sched_add(sched, p->expirey * 1000, expire_registry, (void *)p);
|
||||
iax_ie_append_str(&ied, IAX_IE_USERNAME, p->name);
|
||||
iax_ie_append_short(&ied, IAX_IE_REFRESH, p->expirey);
|
||||
iax_ie_append_int(&ied, IAX_IE_DATETIME, iax2_datetime());
|
||||
iax_ie_append_addr(&ied, IAX_IE_APPARENT_ADDR, &p->addr);
|
||||
if (strlen(p->mailbox)) {
|
||||
msgcount = ast_app_has_voicemail(p->mailbox);
|
||||
|
Reference in New Issue
Block a user