[asterisk-commits] russell: branch 1.4 r80849 - /branches/1.4/channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Aug 24 16:22:50 CDT 2007
Author: russell
Date: Fri Aug 24 16:22:50 2007
New Revision: 80849
URL: http://svn.digium.com/view/asterisk?view=rev&rev=80849
Log:
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)
Modified:
branches/1.4/channels/chan_iax2.c
Modified: branches/1.4/channels/chan_iax2.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_iax2.c?view=diff&rev=80849&r1=80848&r2=80849
==============================================================================
--- branches/1.4/channels/chan_iax2.c (original)
+++ branches/1.4/channels/chan_iax2.c Fri Aug 24 16:22:50 2007
@@ -8490,8 +8490,8 @@
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;
More information about the asterisk-commits
mailing list