diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 21:22:50 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-24 21:22:50 +0000 |
commit | c1158ac29ea5024dc5dfc707029a37bc5f6e6949 (patch) | |
tree | 8b4805f24a25b3c00d37fef17799bb76fe61f959 /channels | |
parent | e2ef0ef534c65c166215b4b2ca79b0301adc059b (diff) |
If dnsmgr is in use, and no DNS servers are available when Asterisk first
starts, then don't give up on poking peers. Allow the poke to get rescheduled
so that it will work once the dnsmgr is able to resolve the host.
(closes issue #10521, patch by jamesgolovich)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@80849 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_iax2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 214432400..1793e1fdf 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -8490,8 +8490,8 @@ static int iax2_poke_peer_cb(void *obj, void *arg, int flags) static int iax2_poke_peer(struct iax2_peer *peer, int heldcall) { - if (!peer->maxms || !peer->addr.sin_addr.s_addr) { - /* IF we have no IP, or this isn't to be monitored, return + if (!peer->maxms || (!peer->addr.sin_addr.s_addr && !peer->dnsmgr)) { + /* IF we have no IP without dnsmgr, or this isn't to be monitored, return immediately after clearing things out */ peer->lastms = 0; peer->historicms = 0; |