Gentoo Archives: gentoo-commits

From: "Stefan Briesenick (sbriesen)" <sbriesen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/iaxmodem/files: iaxmodem.cfg iaxmodem.logrotated iaxmodem.initd iaxmodem.confd
Date: Tue, 14 Oct 2008 23:53:42
Message-Id: E1Kpthr-00081G-54@stork.gentoo.org
1 sbriesen 08/10/14 23:53:39
2
3 Added: iaxmodem.cfg iaxmodem.logrotated iaxmodem.initd
4 iaxmodem.confd
5 Log:
6 initial commit, solving bug# 169151.
7 (Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686)
8
9 Revision Changes Path
10 1.1 net-misc/iaxmodem/files/iaxmodem.cfg
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.cfg?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.cfg?rev=1.1&content-type=text/plain
14
15 Index: iaxmodem.cfg
16 ===================================================================
17 ; Sample Configuration for IAXmodem
18 ;
19 ; Comments can be placed into the IAXmodem configuration files by beginning
20 ; them with a semicolon (";").
21 ;
22 ; Copy this file to the /etc/iaxmodem directory with a unique file name.
23 ; The name of the file will serve as the identifier, if you choose to
24 ; launch iaxmodem in non-daemon mode.
25
26
27 ; The "nodaemon" entry exempts the modem from inclusion with daemon use.
28 ; Comment out this line, if you want to use this config in daemon mode!
29
30 nodaemon
31
32 ; The "device" entry is the full name of the device that you will be using
33 ; in your modem application. If running multiple instances of iaxmodem then
34 ; you will need a different device for each instance.
35
36 device /dev/ttyIAX
37
38 ; The "owner" entry (formatted "user:group") is the system user and group
39 ; that IAXmodem should use for the created device.
40
41 owner uucp:uucp
42
43 ; The "mode" entry is the permissions mode for the created device.
44
45 mode 660
46
47 ; The "port" entry refers to the preferred port number on which to listen
48 ; for communications from the Asterisk server (so if you're using more than
49 ; one IAXmodem on a single IP address you will need to have each IAXmodem
50 ; configuration use a different port). You should not use "4569" if Asterisk
51 ; is already listening on port 4569.
52
53 port 4570
54
55 ; The "refresh" entry indicates the preference on how frequently to refresh
56 ; the registration with the Asterisk server. (However, the actual refresh
57 ; value that is used will be negotiated between IAXmodem and the Asterisk
58 ; server.) By setting this to a value of "0" (zero), IAXmodem will not
59 ; register with the server, and thus the server should be configured to
60 ; communicate with IAXmodem on a static address.
61
62 refresh 300
63
64 ; The "server", "peername", and "secret" entries refer to the server name
65 ; (or address), the registered peer name for the IAXmodem client, and the
66 ; registered secret (password) for the IAXmodem client.
67
68 server 127.0.0.1
69 peername iaxmodem
70 secret password
71
72 ; The entries "cidname" and "cidnumber" refer to the Caller*ID presentation
73 ; that will be made by IAXmodem to the Asterisk server.
74
75 cidname John Doe
76 cidnumber 8005551212
77
78 ; The "codec" entry refers to the preferred audio codec. This can be
79 ; "slinear", "alaw", or "ulaw".
80
81 codec slinear
82 ;codec alaw
83 ;codec ulaw
84
85 ; The "record" entry causes audio files to be recorded.
86
87 ;record
88
89 ; The "replay" entry causes the audio files to be replayed back.
90
91 ;replay
92
93 ; The "nojitterbuffer" entry disables the very simple iaxmodem jitterbuffer
94
95 ;nojitterbuffer
96
97 ; The "iax2debug" entry enables debugging output for IAX2.
98
99 ;iax2debug
100
101 ; The "dspdebug" entry enables debugging output for the DSPs.
102
103 ;dspdebug
104
105
106
107
108 1.1 net-misc/iaxmodem/files/iaxmodem.logrotated
109
110 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.logrotated?rev=1.1&view=markup
111 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.logrotated?rev=1.1&content-type=text/plain
112
113 Index: iaxmodem.logrotated
114 ===================================================================
115 /var/log/iaxmodem/* {
116 notifempty
117 missingok
118 size 1000k
119 sharedscripts
120 postrotate
121 /etc/init.d/iaxmodem --ifstarted --quiet reload
122 endscript
123 }
124
125
126
127 1.1 net-misc/iaxmodem/files/iaxmodem.initd
128
129 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.initd?rev=1.1&view=markup
130 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.initd?rev=1.1&content-type=text/plain
131
132 Index: iaxmodem.initd
133 ===================================================================
134 #!/sbin/runscript
135 # Copyright 1999-2008 Gentoo Foundation
136 # Distributed under the terms of the GNU General Public License v2
137 # $Header: /var/cvsroot/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.initd,v 1.1 2008/10/14 23:53:39 sbriesen Exp $
138
139 description="IAXmodem"
140 description_reload="Reread configuration file and make the appropriate changes"
141 extra_started_commands="reload"
142 command="/usr/sbin/iaxmodem"
143 pidfile="/var/run/iaxmodem.pid"
144 name="iaxmodem"
145
146 depend() {
147 use asterisk
148 need net
149 }
150
151 start() {
152 ebegin "Starting ${description}"
153 start-stop-daemon --start --quiet --pidfile "${pidfile}" \
154 --env TMPDIR="/tmp" --nice ${IAXMODEM_NICE:-0} --exec "${command}"
155 eend ${?}
156 }
157
158 stop() {
159 local childs=""
160 ebegin "Stopping ${description}"
161 # start-stop-daemon doesn't kill childs reliable, so we
162 # use a combination of pgrep + start-stop-daemon + kill
163 [ -s "${pidfile}" ] && childs=$(pgrep -P $(cat "${pidfile}"))
164 start-stop-daemon --stop --quiet --pidfile "${pidfile}" --retry TERM/10/KILL/5
165 if eend ${?}; then
166 # if there're still childs running, kill them!
167 [ -n "${childs}" ] && kill -KILL ${childs} 2>/dev/null
168 return 0
169 fi
170 }
171
172 reload() {
173 ebegin "Reloading ${description} configuration"
174 start-stop-daemon --stop --signal HUP --pidfile "${pidfile}"
175 eend ${?}
176 }
177
178
179
180 1.1 net-misc/iaxmodem/files/iaxmodem.confd
181
182 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.confd?rev=1.1&view=markup
183 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/iaxmodem/files/iaxmodem.confd?rev=1.1&content-type=text/plain
184
185 Index: iaxmodem.confd
186 ===================================================================
187 # Configfile for /etc/init.d/iaxmodem
188
189 # Set the priority of the iaxmodem process
190 # Value: (highest) -20..19 (lowest)
191 #
192 #IAXMODEM_NICE="-5"