user_cfg.h 6.02 KB
Newer Older
yanmorin's avatar
 
yanmorin committed
1
/*
2
 *  Copyright (C) 2004-2008 Savoir-Faire Linux inc.
jpbl's avatar
jpbl committed
3 4
 *  Author: Yan Morin <yan.morin@savoirfairelinux.com>
 *  Author: Laurielle Lea <laurielle.lea@savoirfairelinux.com>
5
 *  Authoe: Emmanuel Milou <emmanuel.milou@savoirfairelinux.com>
jpbl's avatar
jpbl committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
 *
 *  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>

27
#define HOMEDIR	(getenv ("HOME"))	              /** Home directory */
jpbl's avatar
jpbl committed
28

29 30
#define DIR_SEPARATOR_CH '/'			      /** Directory separator string */
#define DIR_SEPARATOR_STR "/"			      /** Directory separator char */
jpbl's avatar
jpbl committed
31

32 33
#define ACCOUNT_SIP0  "SIP0"			      /** Account type SIP */
#define ACCOUNT_IAX0  "IAX0"			      /** Account type IAX */
jpbl's avatar
jpbl committed
34

35 36 37 38 39 40 41 42 43 44 45
/** User configuration file fields */
#define AUDIO			"Audio"		      /** Section Audio */
#define CODECS			"ActiveCodecs"	      /** List of active codecs */
#define ALSA_CARD_ID_IN		"Alsa.cardID_In"      /** Soundcard index to use for capture */
#define ALSA_CARD_ID_OUT	"Alsa.cardID_Out"     /** Soundcard index to use for playback */
#define ALSA_FRAME_SIZE		"Alsa.framesize"      /** Audio layer frame size */
#define ALSA_PLUGIN		"Alsa.plugin"	      /** Alsa plugin */
#define ALSA_SAMPLE_RATE	"Alsa.sampleRate"     /** Audio layer sample rate */
#define RING_CHOICE		"Rings.ringChoice"    /** Ringtone */
#define VOLUME_SPKR		"Volume.speakers"     /** Speaker volume */
#define VOLUME_MICRO		"Volume.micro"	      /** Mic volume */
alexandresavard's avatar
alexandresavard committed
46
#define RECORD_PATH             "Record.path"          /** Recording path */
yanmorin's avatar
 
yanmorin committed
47

48
#define VIDEO			"Video"		      /** Section Video */
yanmorin's avatar
 
yanmorin committed
49

50 51
#define PREFERENCES		"Preferences"		  /** Section Preferences */
#define CONFIG_DIALPAD		"Dialpad.display"	  /** Display dialpad preferences */
52
#define CONFIG_SEARCHBAR	"Searchbar.display"	  /** Whether or nor display the search bar */
53
#define CONFIG_HISTORY		"History.maxCalls"	  /** Set the maximum number of calls kept */
54 55
#define CONFIG_NOTIFY		"Notify.all"		  /** Desktop notification level */
#define CONFIG_MAIL_NOTIFY	"Notify.mails"		  /** Desktop mail notification level */
56 57 58 59
#define ZONE_TONE		"Options.zoneToneChoice"  /** Country tone */
#define CONFIG_RINGTONE		"Ringtones.enable"	  /** Ringtones preferences */
#define CONFIG_START		"Start.hidden"		  /** SFLphone starts in the systm tray or not */
#define CONFIG_POPUP		"Window.popup"		  /** SFLphone pops up on incoming calls or not */
60
#define CONFIG_VOLUME		"Volume.display"	  /** Display the mic and speaker volume controls */
61
#define CONFIG_ZEROCONF		"Zeroconf.enable"	  /** Zero configuration networking module */
62
#define REGISTRATION_EXPIRE	"Registration.expire"	  /** Registration expire value */
63
#define CONFIG_AUDIO		"Audio.api"		  /** Audio manager (ALSA or pulseaudio) */
64
#define CONFIG_PA_VOLUME_CTRL	"Pulseaudio.volumeCtrl"	  /** Whether or not PA should modify volume of other applications on the same sink */
65
#define CONFIG_SIP_PORT         "SIP.portNum"
jpbl's avatar
jpbl committed
66

67 68 69 70 71 72
#define SIGNALISATION		"VoIPLink"	      /** Section Signalisation */
#define PLAY_DTMF		"DTMF.playDtmf"	      /** Whether or not should play dtmf */
#define PLAY_TONES		"DTMF.playTones"      /** Whether or not should play tones */
#define PULSE_LENGTH		"DTMF.pulseLength"    /** Length of the DTMF in millisecond */
#define SEND_DTMF_AS		"DTMF.sendDTMFas"     /** DTMF send mode */
#define SYMMETRIC		"VoIPLink.symmetric"  /** VoIP link type */
Emmanuel Milou's avatar
Emmanuel Milou committed
73 74
#define STUN_ENABLE     "STUN.enable"
#define STUN_SERVER     "STUN.server"
jpbl's avatar
jpbl committed
75

76 77 78
#define ADDRESSBOOK                 "Addressbook"               /** Address book section */
#define ADDRESSBOOK_MAX_RESULTS      "Addressbook.max_results"
#define ADDRESSBOOK_DISPLAY_CONTACT_PHOTO   "Addressbook.contact_photo"
79 80 81
#define ADDRESSBOOK_DISPLAY_PHONE_BUSINESS   "Addressbook.phone_business"
#define ADDRESSBOOK_DISPLAY_PHONE_HOME          "Addressbook.phone_home"
#define ADDRESSBOOK_DISPLAY_PHONE_MOBILE    "Addressbook.phone_mobile"
82

83 84 85 86 87 88 89 90 91 92 93 94 95 96
#define EMPTY_FIELD		""			/** Default value for empty field */
#define DFT_STUN_SERVER 	"stun.fwdnet.net:3478"	/** Default STUN server address */
#define	YES_STR			"1"			/** Default YES value */   
#define	NO_STR			"0"			/** Default NO value */
#define DFT_PULSE_LENGTH_STR	"250"			/** Default DTMF lenght */
#define SIP_INFO_STR		"0"			/** Default DTMF transport mode */	
#define ALSA_DFT_CARD		"0"			/** Default sound card index */
#define DFT_VOL_SPKR_STR	"100"			/** Default speaker volume */
#define DFT_VOL_MICRO_STR	"100"			/** Default mic volume */
#define DFT_RINGTONE 		"konga.ul"		/** Default ringtone */
#define DFT_ZONE		"North America"		/** Default geographical zone */
#define DFT_VOICEMAIL 		"888"			/** Default voicemail number */
#define DFT_FRAME_SIZE		"20"			/** Default frame size in millisecond */
#define DFT_SAMPLE_RATE		"44100"			/** Default sample rate in HZ */
97
#define DFT_NOTIF_LEVEL		"2"			/** Default desktop notification level : maximum */
98
#define DFT_MAX_CALLS		"20"			/** Default maximum calls in history */
99
#define DFT_EXPIRE_VALUE	"180"			/** Default expire value for registration */
100
#define DFT_AUDIO_MANAGER	"1"			/** Default audio manager */
101
#define DFT_SIP_PORT            "5060"
102 103
#define DFT_STUN_ENABLE         "0"
#define DFT_RECORD_PATH         HOMEDIR
104

jpbl's avatar
jpbl committed
105
#ifdef USE_ZEROCONF
106
#define CONFIG_ZEROCONF_DEFAULT_STR "1"			/** Default Zero configuration networking module value */
jpbl's avatar
jpbl committed
107
#else
108
#define CONFIG_ZEROCONF_DEFAULT_STR "0"			/** Default Zero configuration networking module value */
jpbl's avatar
jpbl committed
109 110 111
#endif

#endif // __USER_CFG_H__