[asterisk-commits] jpeeler: branch jpeeler/sip-dnsmgr r110208 - /team/jpeeler/sip-dnsmgr/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 19 18:36:13 CDT 2008
Author: jpeeler
Date: Wed Mar 19 18:36:12 2008
New Revision: 110208
URL: http://svn.digium.com/view/asterisk?view=rev&rev=110208
Log:
added dnsmgr for peer entries
Modified:
team/jpeeler/sip-dnsmgr/channels/chan_sip.c
Modified: team/jpeeler/sip-dnsmgr/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/jpeeler/sip-dnsmgr/channels/chan_sip.c?view=diff&rev=110208&r1=110207&r2=110208
==============================================================================
--- team/jpeeler/sip-dnsmgr/channels/chan_sip.c (original)
+++ team/jpeeler/sip-dnsmgr/channels/chan_sip.c Wed Mar 19 18:36:12 2008
@@ -9104,6 +9104,9 @@
{
/* if we are here, we know that we need to reregister. */
struct sip_registry *r= registry_addref((struct sip_registry *) data);
+
+ /* jeff: remove */
+ ast_log(LOG_DEBUG, "sip_reregister ******************************************************\n");
/* if we couldn't get a reference to the registry object, punt */
if (!r)
@@ -19762,6 +19765,9 @@
const char *srvlookup = NULL;
static int deprecation_warning = 1;
+ /* jeff: remove */
+ ast_log(LOG_DEBUG, "build_peer called on %s\n", name);
+
if (!realtime)
/* Note we do NOT use find_peer here, to avoid realtime recursion */
/* We also use a case-sensitive comparison (unlike find_peer) so
@@ -19882,6 +19888,10 @@
AST_SCHED_DEL(sched, peer->expire);
peer->host_dynamic = FALSE;
srvlookup = v->value;
+
+ if (peer->dnsmgr == NULL) {
+ ast_dnsmgr_lookup(srvlookup, &peer->addr.sin_addr, &peer->dnsmgr);
+ }
}
} else if (!strcasecmp(v->name, "defaultip")) {
if (ast_get_ip(&peer->defaddr, v->value)) {
More information about the asterisk-commits
mailing list