[Asterisk-cvs] asterisk/channels chan_mgcp.c,1.29,1.30
markster at lists.digium.com
markster at lists.digium.com
Fri Dec 5 10:59:05 CST 2003
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv25883/channels
Modified Files:
chan_mgcp.c
Log Message:
Don't use dynamic mode when scanning all gateways
Index: chan_mgcp.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_mgcp.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- chan_mgcp.c 8 Sep 2003 16:48:06 -0000 1.29
+++ chan_mgcp.c 5 Dec 2003 16:50:30 -0000 1.30
@@ -1048,7 +1048,7 @@
if ((!name || !strcasecmp(g->name, at)) &&
(sin || g->addr.sin_addr.s_addr || g->defaddr.sin_addr.s_addr)) {
/* Found the gateway. If it's dynamic, save it's address -- now for the endpoint */
- if (sin && g->dynamic) {
+ if (sin && g->dynamic && name) {
if ((g->addr.sin_addr.s_addr != sin->sin_addr.s_addr) ||
(g->addr.sin_port != sin->sin_port)) {
memcpy(&g->addr, sin, sizeof(g->addr));
More information about the svn-commits
mailing list