[Asterisk-cvs] asterisk/channels chan_sip.c,1.388,1.389
markster at lists.digium.com
markster at lists.digium.com
Sun May 16 01:42:03 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21374/channels
Modified Files:
chan_sip.c
Log Message:
Make sure that we have the sin_family set to AF_INET for FreeBSD
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.388
retrieving revision 1.389
diff -u -d -r1.388 -r1.389
--- chan_sip.c 15 May 2004 23:32:07 -0000 1.388
+++ chan_sip.c 16 May 2004 05:53:33 -0000 1.389
@@ -7163,6 +7163,7 @@
strncpy(peer->language, language, sizeof(peer->language)-1);
strncpy(peer->musicclass, globalmusicclass, sizeof(peer->musicclass)-1);
peer->addr.sin_port = htons(DEFAULT_SIP_PORT);
+ peer->addr.sin_family = AF_INET;
peer->expiry = expiry;
peer->capability = capability;
/* Assume can reinvite */
@@ -7218,6 +7219,8 @@
strncpy(peer->language, language, sizeof(peer->language)-1);
strncpy(peer->musicclass, globalmusicclass, sizeof(peer->musicclass)-1);
peer->addr.sin_port = htons(DEFAULT_SIP_PORT);
+ peer->addr.sin_family = AF_INET;
+ peer->defaddr.sin_family = AF_INET;
peer->expiry = expiry;
}
oldha = peer->ha;
More information about the svn-commits
mailing list