Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24692/channels

Modified Files:
        chan_skinny.c 
Log Message:
actually get the host's name for the code that needs it (bug #4569)


Index: chan_skinny.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_skinny.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- chan_skinny.c       24 Jun 2005 02:15:04 -0000      1.83
+++ chan_skinny.c       24 Jun 2005 02:56:15 -0000      1.84
@@ -3113,13 +3113,10 @@
        struct skinny_device *d;
        int oldport = ntohs(bindaddr.sin_port);
 
-#if 0          
-       hp = ast_gethostbyname(ourhost, &ahp);
-       if (!hp) {
+       if (gethostname(ourhost, sizeof(ourhost))) {
                ast_log(LOG_WARNING, "Unable to get hostname, Skinny 
disabled\n");
                return 0;
        }
-#endif
        cfg = ast_config_load(config);
 
        /* We *must* have a config file otherwise stop immediately */

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to