[asterisk-commits] rizzo: branch rizzo/astobj2 r75625 - /team/rizzo/astobj2/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Jul 18 10:54:19 CDT 2007
Author: rizzo
Date: Wed Jul 18 10:54:18 2007
New Revision: 75625
URL: http://svn.digium.com/view/asterisk?view=rev&rev=75625
Log:
handle the case where stun fails to get a reply
Modified:
team/rizzo/astobj2/channels/chan_sip.c
Modified: team/rizzo/astobj2/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/astobj2/channels/chan_sip.c?view=diff&rev=75625&r1=75624&r2=75625
==============================================================================
--- team/rizzo/astobj2/channels/chan_sip.c (original)
+++ team/rizzo/astobj2/channels/chan_sip.c Wed Jul 18 10:54:18 2007
@@ -2248,7 +2248,10 @@
}
externexpire = time(NULL) + externrefresh;
}
- *us = externip;
+ if (externip.sin_addr.s_addr)
+ *us = externip;
+ else
+ ast_log(LOG_WARNING, "stun failed\n");
if (option_debug) {
ast_log(LOG_DEBUG, "Target address %s is not local, substituting externip\n",
ast_inet_ntoa(*(struct in_addr *)&them->s_addr));
More information about the asterisk-commits
mailing list