1 // Copyright (C) 2000-2005 Open Source Telecom Corporation.
2 // Copyright (C) 2006-2014 David Sugar, Tycho Softworks.
3 // Copyright (C) 2015 Cherokees of Idaho.
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
20
21 #ifdef CCXX_NAMESPACES
22 namespace ost {
23 #endif
24
27 {
28 static Keydata::Define defkeys[] = {
29 {"audio", "0"},
30 {"priority", "0"},
31 {"rtp", "0"},
32 {"gui", "0"},
33 {"policy", "other"},
34 {"stack", "8"},
35 {NULL, NULL}};
36
37 load("~phone/threads");
38 load(defkeys);
39
40 const char *cp = getLast("pri");
41
42 if(cp)
43 setValue("priority", cp);
44 }
45
48 {
49 static Keydata::Define defkeys[] = {
50 {"interface", "*"},
51 {"multicast", "*"},
52 {"port", "3128"},
53 {NULL, NULL}};
54
55 load("~phone/rtp");
56 load(defkeys);
57 }
58
61 {
62 static Keydata::Define defkeys[] = {
63 {"interface", "oss"},
64 {"device", "/dev/audio"},
65 {"mike", "80"},
66 {"speaker", "80"},
67 {NULL, NULL}};
68
69 load("~phone/audio");
70 load(defkeys);
71 }
72
76
77 #ifdef CCXX_NAMESPACES
78 }
79 #endif
KeyThreads()
Initialize keythread data.
KeyRTP()
Initialize keythread data.
Load /etc/phone.conf [audio] key value pairs.
Load /etc/phone.conf [thread] key value pairs.
Load /etc/phone.conf [thread] key value pairs.
KeyAudio()
Initialize keythread data.