mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 12:52:33 +00:00
don't fail register on dns error (bug #3424)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/v1-0@4902 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -4081,7 +4081,15 @@ static int transmit_register(struct sip_registry *r, char *cmd, char *auth, char
|
||||
}
|
||||
/* Find address to hostname */
|
||||
if (create_addr(p,r->hostname)) {
|
||||
sip_destroy(p);
|
||||
/* we have what we hope is a temporary network error,
|
||||
* probably DNS. We need to reschedule a registration try */
|
||||
sip_destroy(p);
|
||||
if (r->timeout > -1) {
|
||||
ast_log(LOG_WARNING, "Still have a registration timeout (create_addr() error), %d\n", r->timeout);
|
||||
ast_sched_del(sched, r->timeout);
|
||||
}
|
||||
r->timeout = ast_sched_add(sched, 20*1000, sip_reg_timeout, r);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user