summaryrefslogtreecommitdiff
path: root/net/sipxcommserverlib/files/patch-etc_config.defs.in
blob: 01180c362ab634049e28976e762e3931797ec4b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- ./etc/config.defs.in.orig	Sun Dec 31 14:13:17 2006
+++ ./etc/config.defs.in	Thu Jan  4 13:33:39 2007
@@ -12,10 +12,10 @@
 # host name (e.g. myhost.domain.com).
 # If you use DNS SRV, the SIPXCHANGE_DOMAIN_NAME should be set 
 # to domain name (e.g. domain.com), so comment out the assignment
-# below that uses -f and uncomment the one that uses -d:
+# below that uses hostname and uncomment the one that uses hostname | cut
 #
-SIPXCHANGE_DOMAIN_NAME=`hostname -f`
-# SIPXCHANGE_DOMAIN_NAME=`hostname -d`
+SIPXCHANGE_DOMAIN_NAME=`hostname`
+# SIPXCHANGE_DOMAIN_NAME=`hostname | cut -d . -f 2-`
 
 #### Core Limit
 # Control whether or not core files are saved in a server failure.
@@ -24,10 +24,10 @@
 SIPX_CORELIMIT=unlimited
 
 # the realm string used in authentication challenges
-SIPXCHANGE_REALM=`hostname -d`
+SIPXCHANGE_REALM=`hostname | cut -d . -f 2-`
 
 ##### Information about this server #####
-MY_FULL_HOSTNAME=`hostname -f`
+MY_FULL_HOSTNAME=`hostname`
 MY_HOSTNAME=`hostname -s`
 MY_IP_ADDR=`@bindir@/get_def_addr`