user_cfg.h 3.57 KB
Newer Older
yanmorin's avatar
   
yanmorin committed
1
2
/*
 *  Copyright (C) 2004-2006 Savoir-Faire Linux inc.
jpbl's avatar
jpbl committed
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
30
31
32
33
34
35
36
37
38
39
 *  Author: Yan Morin <yan.morin@savoirfairelinux.com>
 *  Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *                                                                                 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#ifndef __USER_CFG_H__
#define __USER_CFG_H__

#include <stdlib.h>

// Home directory
#define HOMEDIR	(getenv ("HOME"))

// TODO: change for a \ in Windows Environment
#define DIR_SEPARATOR_CH '/'
#define DIR_SEPARATOR_STR "/"

// Main menu
#define SIGNALISATION	"VoIPLink"
#define AUDIO			"Audio"
#define VIDEO			"Video"
#define NETWORK			"Network"
#define PREFERENCES		"Preferences"

yanmorin's avatar
   
yanmorin committed
40
#define ACCOUNT_SIP0  "SIP0"
yanmorin's avatar
   
yanmorin committed
41
#define ACCOUNT_IAX0  "IAX0"
yanmorin's avatar
   
yanmorin committed
42
43


jpbl's avatar
jpbl committed
44
// Fields to fill
yanmorin's avatar
   
yanmorin committed
45
//#define VOIP_LINK_ID	"VoIPLink.index"
jpbl's avatar
jpbl committed
46
47
#define SYMMETRIC     "VoIPLink.symmetric"

yanmorin's avatar
   
yanmorin committed
48
49
50
51
52
53
54
//#define FULL_NAME		"SIP.fullName"
//#define USER_PART		"SIP.userPart"
//#define AUTH_USER_NAME	"SIP.username"
//#define PASSWORD		"SIP.password"
//#define HOST_PART		"SIP.hostPart"
//#define PROXY			"SIP.proxy"
//#define AUTO_REGISTER	"SIP.autoregister"
yanmorin's avatar
   
yanmorin committed
55
56
#define PLAY_DTMF       "DTMF.playDtmf"
#define PLAY_TONES      "DTMF.playTones" 
jpbl's avatar
jpbl committed
57
58
#define PULSE_LENGTH	"DTMF.pulseLength"
#define SEND_DTMF_AS	"DTMF.sendDTMFas"
yanmorin's avatar
   
yanmorin committed
59
60
//#define STUN_SERVER		"STUN.STUNserver"
//#define USE_STUN		"STUN.useStun"
jpbl's avatar
jpbl committed
61
62
63
#define DRIVER_NAME		"Drivers.driverName"
#define DRIVER_NAME_IN		"Drivers.driverNameIn"
#define DRIVER_NAME_OUT		"Drivers.driverNameOut"
yanmorin's avatar
yanmorin committed
64
#define DRIVER_SAMPLE_RATE      "Drivers.sampleRate"
65
#define DRIVER_FRAME_SIZE	"Drivers.framesize"
jpbl's avatar
jpbl committed
66
67
68
69
70
#define NB_CODEC		"Codecs.nbCodec"
#define CODEC1			"Codecs.codec1"
#define CODEC2			"Codecs.codec2"
#define CODEC3			"Codecs.codec3"
#define RING_CHOICE		"Rings.ringChoice"
71
#define ACCOUNT_SIP_COUNT_DEFAULT 4
72
#define ACCOUNT_IAX_COUNT_DEFAULT 4
jpbl's avatar
jpbl committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104

// speakers and volume 0 to 100
#define VOLUME_SPKR	"Volume.speakers"
#define VOLUME_MICRO	"Volume.micro"
#define SKIN_CHOICE		"Themes.skinChoice"
#define CONFIRM_QUIT	"Options.confirmQuit"
#define ZONE_TONE		"Options.zoneToneChoice"
#define CHECKED_TRAY	"Options.checkedTray"
#define VOICEMAIL_NUM	"Options.voicemailNumber"
// zeroconfig module
#define CONFIG_ZEROCONF "Zeroconf.enable"

// Default values
#define EMPTY_FIELD			""
#define DFT_STUN_SERVER 	"stun.fwdnet.net:3478"

#define	YES_STR              "1"
#define	NO_STR               "0"
#define DFT_PULSE_LENGTH_STR "250"
#define SIP_INFO_STR         "0"
#define DFT_DRIVER_STR       "0"
#define DFT_NB_CODEC_STR     "3"
// volume by default 100%
#define DFT_VOL_SPKR_STR     "100"
#define DFT_VOL_MICRO_STR    "100"


#define DFT_CODEC			"G711u"
#define DFT_RINGTONE 		"konga.ul"
#define DFT_SKIN 			"metal"
#define DFT_ZONE			"North America"
#define DFT_VOICEMAIL 		"888"
105
106
#define DFT_FRAME_SIZE		"20"
#define DFT_SAMPLE_RATE		"44100"
jpbl's avatar
jpbl committed
107
108
109
110
111
112
113
114
// zeroconfig default value
#ifdef USE_ZEROCONF
#define CONFIG_ZEROCONF_DEFAULT_STR "1"
#else
#define CONFIG_ZEROCONF_DEFAULT_STR "0"
#endif

#endif // __USER_CFG_H__