Author: oej Date: Thu Aug 21 09:21:55 2014 New Revision: 421674 URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421674 Log: Working around the DNS manager
Modified: team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c Modified: team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c URL: http://svnview.digium.com/svn/asterisk/team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c?view=diff&rev=421674&r1=421673&r2=421674 ============================================================================== --- team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c (original) +++ team/oej/pgtips-srv-and-outbound-stuff-1.8/channels/chan_sip.c Thu Aug 21 09:21:55 2014 @@ -13971,7 +13971,9 @@ /* Find address to hostname */ ast_debug(3, " --- Going to find address for domain %s - host/peer %s\n", r->regdomain, S_OR(r->peername, r->hostname)); - if (create_addr(p, S_OR(r->peername, r->hostname), dosrvlookup ? NULL : &r->us, 0)) { + //if (create_addr(p, S_OR(r->peername, r->hostname), dosrvlookup ? NULL : &r->us, 0)) { + /* Only send r->us if DNS manager manages it */ + if (create_addr(p, S_OR(r->peername, r->hostname), r->dnsmgr ? &r->us : NULL, 0)) { /* we have what we hope is a temporary network error, * probably DNS. We need to reschedule a registration try */ dialog_unlink_all(p); -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- svn-commits mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/svn-commits