# -*-coding: euc-kr -*-
DISABLE = 0
ENABLE = 1
NARROWBAND = 0
WIDEBAND = 1
#Roxia Begin smyook 06.06.25
dhcp_min = 60 * 1000
dhcp_retry_count = 0
dhcp_checksec = 3* 1000
dhcp_check_count = 0
max_check_dhcp_sec = 5
#Roxia End smyook
NTP_CODE_ENABLE = True
ntptime_file = '/usr/etc/ntptime_mmi'
ntptime_file_from_msntp = '/usr/etc/ntptime'
#Roxia Begin jhbang 06.03.24 <ntp>
ntp_wait_secs = 7 # 7secs
ntpconfig_file = '/usr/local/lgvp/ntp.cfg'
#default_ntpserver = 'hora.ngn.rima-tde.net'
default_ntpserver = 'ntp.telio.no'
#MMW provision 2008.12.23
#when factory reset do not remove
telio_site='/usr/etc/telio_site.cfg'
#when factory reset remove file
provision_url_site='/usr/etc/telio_provision_site.cfg'
resync_time_file='/usr/etc/prov_resync.cfg'
provision_data='/tmp/provision'
Provision_enable = True
provision_process_watch_time = 3
provision_show_wait_time = 1
#Roxia End jhbang
# runtime에 변경되지않는 UI에관계없는 설정값들
dtmf_duration = 0.07
dtmf_pause = 0.06
special_key_dtmf_duration = 0.3
PSTN_after_R_interval = 1.2
PSTN_alternate_dtmf = '2'
PSTN_conference_dtmf = '3'
PSTN_end_connected_call_dtmf = '1'
PSTN_release_conference_dtmf = '2'
limit_filecount = 20 #각 폴더별 파일 제한 개수
start_with_offhook = True
i_am_ppp_server = False
x = 0
y = 0
width = 480
height = 272
rotation = 0
# key define
Menu1 = 'F1'
Menu2 = 'F2'
Menu3 = 'SOFT3'
Menu4 = 'SOFT4'
LongMenu2 = 'F2 Long'
key_Left = 'Left'
key_Right = 'Right'
key_Ok = 'OK'
key_Up ='Up'
key_Down ='Down'
OnHook = 'F3'
OffHook = 'F4'
Green = 'F5'
Red = 'F6'
Video = 'F7'
VideoPrivacy = 'F8' # later delete
MyAnn = 'F8'
Snapshot = 'OLD_F9'
VideoSize = 'F10' # later delete
Camera = 'F10'
ASTERISK_4 = '4*'
key_mms = 'MMS'
key_favorite = 'WEB'
key_soft3 = 'SOFT3'
key_soft4 = 'SOFT4'
key_link_up = 'LINKUP'
key_link_down = 'LINKDOWN'
# add shchun : introducing wifi keys, ip changed key
key_wifi_link_up = 'WIFIUP'
key_wifi_link_down = 'WIFIDOWN'
key_ip_changed = 'IPCHANGED'
key_wifi_auth_fail = 'WIFIAUTHFAIL'
key_ntp_success = 'NTP_SUCC'
key_ntp_fail = 'NTP_FAIL'
# end shchun
TS1_OFF_HOOK = 'TS1_OFF_HOOK'
TS2_OFF_HOOK = 'TS2_OFF_HOOK'
CLEAR = 'CLR'
ok = 'OK'
CLEAR_LONG = 'CLR_LONG'
VideoMute = 'F9'
AudioMute = 'DOWNTOWN' # later delete
HookFlash = 'DOWNTOWN'
Transfer = 'INFORMATION'
# event definition
CANCEL = 'CANCEL'
FAIL = 'FAIL'
SUCCEED = 'SUCCEED'
DESUBSCRIBE = 'DESUBSCRIBE'
ring_timeout = 5500
cid_wait_timeout = 3000
ring_guard_timeout = 3000
var_path = '/usr/local/lgvp/var/'
log_file = var_path + 'log'
module_file = var_path + 'module.info'
# modem setting
modem_patch_upstream_on = ('Patch_EIS_2C_3A_RAM-ike_02_LGE3.7.ptc', )
modem_patch_upstream_off = ('Patch_EIS_2C_3A_RAM-ike_02_LGE3.7.ptc', )
# on/off hook
onhook_interval = 500
# Long Key로 간주되는 시간 간격
long_key_interval = 2 * 1000
keypad_led_on_time = 10 * 1000 # 20 seconds
# call -> connect로 넘어가는 시간 delay
# 이 시간이 지나도록 사용자 입력이 없으면 전화가 걸린것으로 간주
connect_delay = 200 #5 * 1000
# db size
dialed_db_size = 20
missed_db_size = 20
received_db_size = 20
phone_db_size = 500
group_minimum_db = 7
# 최대 오디오 저장 시간
audio_record_duration = 20
# 최대 비디오 저장 시간
video_record_duration = 20
video_record_format='3gp' # 'mp4' or '3gp'
#video thumnail time
video_thumnail_time_1 = 4000
video_thumnail_time_2 = 2000
# 최소 남은 저장공간(항상 이만큼의 free 는 유지하) : KB
#update를 위한 5000, 나머지 free space 600(video record를 위해 증가)
min_free_storage = 400
templatelist_path_english = 'messages/template_english.info'
templatelist_path_spain = 'messages/template_spain.info'
# message db files
sms_received_path = 'messages/sms/received/'
sms_saved_path = 'messages/sms/saved/'
sms_personal_info = 'messages/sms/personal.info'
sms_received_info = 'messages/sms/received.info'
sms_draft_path = 'messages/sms/draft/'
sms_draft_info_path = 'messages/sms/draft.info'
sms_sent_path = 'messages/sms/sent/'
sms_sent_info_path = 'messages/sms/sent.info'
sms_received_path_KT = 'messages/ipsms/received/'
sms_received_info_KT = 'messages/ipsms/received.info'
sms_saved_path_KT = 'messages/ipsms/saved/'
sms_saved_info_KT = 'messages/ipsms/saved.info'
sms_draft_path_KT = 'messages/ipsms/draft/'
sms_draft_info_path_KT = 'messages/ipsms/draft.info'
sms_sent_path_KT = 'messages/ipsms/sent/'
sms_sent_info_path_KT = 'messages/ipsms/sent.info'
email_saved_path = 'messages/email/saved/'
email_personal_info = 'messages/email/personal.info'
ip_email_read_path = 'messages/ip_email/read/'
ip_email_read_info = 'messages/ip_email/read.info'
ip_email_saved_path = 'messages/ip_email/saved/'
ip_email_personal_info = 'messages/ip_email/personal.info'
ip_email_draft_path = 'messages/ip_email/draft/'
ip_email_draft_info_path = 'messages/ip_email/draft.info'
ip_email_sent_path = 'messages/ip_email/sent/'
ip_email_sent_info_path = 'messages/ip_email/sent.info'
ip_email_attach_etc_path = 'ipemail_etc/'
ip_email_download_limit_size = 400*1024 #400k by byte.requested by LGE Ryu Senier.
# max
sms_max = 612
sms_max_KT = 80
email_max = 109
ip_email_max = 2000
# message가 저장되는 디렉토리
message_dir = 'messages/'
auto_answer_dir = '/usr/local/lgvp/audios/messages/'
# image가 저장되는 디렉토리
image_bg_dir = 'photos/bg/'
# background 로 세팅된 bg 가 복사되서 저장되는 디렉토리
image_background_dir = 'photos/background/'
# KA: [20070912] Temporary KT DEMO
#def_bg = image_bg_dir + 'Telefonica.png'
#def_bg = image_bg_dir + '배경06.jpg'
def_bg = image_bg_dir + 'Background01.jpg'
# mms를 통해 받은 이미지
image_wallpaper_dir = 'photos/photos/wallpaper/'
# sms를 통해 받은 이미지
image_picture_dir = 'photos/photos/picture/'
#ka...3800 2007.06.07 path TEST
image_taken_dir = 'photos/taken/'
image_snapshot_dir = 'photos/snapshot/'
#image_received_dir = 'photos/received/'
image_received_dir = 'photos/downloadimages/'
image_avatas_dir = 'photos/avatas/'
image_privacy_dir = 'photos/privacy/'
# KA: [20080314] phonebook UI
image_phonebook_dir = 'photos/photos/phonebook/'
# audio가 저장되는 디렉토리
audio_root_dir = '/usr/local/lgvp/'
audio_def_dir = '/usr/local/lgvp/audios/ring/'
audio_dir_basic = audio_def_dir +'BasicBell/'
audio_dir_sweet = audio_def_dir +'SweetBell/'
audio_dir_merry = audio_def_dir +'MerryBell/'
audio_dir_classic = audio_def_dir +'ClassicBell/'
audio_dir_effect = audio_def_dir +'EffectBell/'
audio_dir_download = audio_def_dir +'downloadbell/'
audio_dir_recorded = '/usr/local/lgvp/audios/audios/recorded/'
#keytone_dir = '/usr/local/lgvp/audios/keytone/'
keytone_dir = '/mfs/ram/keytone/'
#effect_dir = '/usr/local/lgvp/audios/effect/'
effect_dir = '/mfs/ram/effect/'
message_effect_VM_dir = '/usr/local/lgvp/audios/msgsound/'
message_effect_dir = '/usr/local/lgvp/audios/msgsoundMMI/'
#message_effect_default = message_effect_dir + '알림음4.wav'
#message_effect_default = message_effect_dir + '알림음1.wav'
message_effect_default = message_effect_dir + 'Alarm4.wav'
SETTING_SUCCEEDED = 1
SETTING_FAILED = 0
STILL_CAPTURE_MODE_QQVGA = 1
STILL_CAPTURE_MODE_QCIF = 2
STILL_CAPTURE_MODE_QVGA = 3
STILL_CAPTURE_MODE_CIF = 4
STILL_CAPTURE_MODE_VGA = 5
# 직접 레코드된 파일
# KA: [20070725] 절대경로로 변경
audio_recorded_dir = '/usr/local/lgvp/audios/audios/recorded/'
audio_amr2wav_recorded_dir = '/usr/local/lgvp/audios/audios_wav/recorded/'
mp3_dir = '/usr/local/lgvp/audios/mp3/'
# KA: [20070725] 절대경로로 변경 ==
# mms를 통해 받은 poly midi
audio_polyphonic_dir = 'audios/audios/polyphonic/'
audio_amr2wav_polyphonic_dir = 'audios/audios_wav/polyphonic/'
# sms를 통해받은 ringtone
audio_other_dir = '/usr/local/lgvp/audios/audios/other/'
audio_amr2wav_other_dir = 'audios/audios_wav/other/'
alarm_melody = audio_def_dir + 'SundayAfternoon.mid'
wait_melody = 'audios/wait/waiting.wav'
dial_tone_melody = 'audios/wait/dial_ulaw.wav'
ringback_tone_melody = 'audios/wait/ringback_ulaw.wav'
busy_tone_melody = 'audios/wait/busy_ulaw.wav'
cg_tone_melody = 'audios/wait/cg_ulaw.wav'
# KA: [20070730] Temporary melody
#lg_logo_melody = audio_def_dir + 'Logo Song.mid'
lg_logo_melody = audio_def_dir + 'SundayAfternoon.mid'
# default ring file
#ka...3800 2007.03.28
#def_melody = audio_def_dir + 'Salut d\'Amour.mid'
#def_melody = audio_dir_basic + 'SundayAfternoon.mid'
#def_melody = audio_dir_basic + '기본전화벨.mp3'
def_melody = audio_dir_basic + 'BasicRing.mp3'
for_one_ring_melody = audio_def_dir + 'SundayAfternoon.mid'
# for sms ring
sms_ring = 'audios/wait/dingdong.wav'
autoAnswerAnnouncement = audio_root_dir + 'audios/auto_answering/autoAnswer_w_1.wav'
transferMOH = audio_root_dir + 'audios/transfer/transferMOH.wav'
transferMOH2 = audio_root_dir + 'audios/transfer/transferMOH2.wav'
# video가 저장되는 디렉토리
video_dir = 'videos'
video_recorded_dir = '/usr/local/lgvp/videos/recorded/'
video_received_dir = '/usr/local/lgvp/videos/received/'
#Roxia Begin jhbang 06.01.20
#video_recorded_thumnail_dir = 'thumbnails/recorded/'
#video_received_thumnail_dir = 'thumbnails/received/'
#ka...3800 2007.05.31 절대 경로로 변경
video_recorded_thumnail_dir = '/usr/local/lgvp/thumbnails/recorded/'
video_received_thumnail_dir = '/usr/local/lgvp/thumbnails/received/'
# sms/mms
vm_MMSC_dir = '/usr/local/lgvp/store/'
# KA: [20080221] SDMMC
sdmmc_dir = '/mfs/sd/'
sdmmc_conv_dir ='/usr/mmc_sd/'
usb_dir = '/mnt/'
# web을 통해 받은 파일
image_web_dir = 'photos/web/'
audio_web_dir = 'audios/web/'
video_web_dir = 'videos/web/'
# PIN 숫자 최대 갯수
len_pin_number = 4
# setting이 저장되는 파일
setting_file = 'setting_save.py'
setting_file_check = '/usr/local/lgvp/file_check'
setting_backup_file_check = '/usr/local/lgvp/file_backup_check'
setting_file_backup = 'setting_save_backup.py'
vdcisetting_file = '/usr/local/lgvp/vdci.cfg'
tupsetting_file = '/usr/local/lgvp/tupbr.cfg'
profile_dir = '/usr/etc/'
profile_file = profile_dir + 'profile'
lan_profile_file = profile_dir + 'ethernet.cfg'
wifi_profile_file = profile_dir + 'wireless.cfg'
# shchun : add wireless sub-profile. May-6
# - There are 2 sub-profile "general", "megaap", the main-frame work will copy one of sub-profile to "wifi_profile_file"
# Then, restart.
# - user can modify setting of general profile.
# - KT profile can be enabled or disabled (it has preset parameters which is common with KT services)
# - When applying the profile, the framework will try to apply KT profile then try to apply user profile.
wifi_profile_general_file = profile_dir + 'wireless_general.cfg'
wifi_profile_megaap_file = profile_dir + 'wireless_kt_default.cfg'
# May-18
a_moment = 100
oncall_link_fail_timeout = 10 * 1000
mega_mmi_timeout = 60 * 1000
gen_mmi_timeout = 60 * 1000
mega_ap_timeout = 25 * 1000
gen_ap_timeout = 25 *1000
dhcp_timeout_wifi = 35 * 1000 # per KT requirement.
dhcp_timeout_lan = 15 * 1000 # per KT requirement.
dhcp_interval = 60 * 1000
net_monitor_interval = 60 * 1000 # per KT requirement
net_monitor_cooling_time = 10 * 1000
net_timeout = 60 * 1000 # when
resume_network_timeout_lan = 15*1000
resume_network_timeout_wifi = 50*1000
resume_network_mmi_timeout = 90*1000
# for magickey sequence.
max_lastkey_num = 15
# ntp configval.
ntp_success_retry_interval = 24 * 60 * 60 * 1000
ntp_fail_retry_interval = 60 * 1000
ntp_delay_retry_interval = 30 * 1000
# RSS timer
RSS_network_ok_wait_time = 60 * 1000
RSS_data_check_time = 10 * 1000
RSS_data_update_time = 3 * 1000
RSS_fork_error_update_time = 10 * 1000
RSS_wait_pid_time = 1 * 1000
rss_feed_update_time = 15 * 60 * 1000
rss_site = 'http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml'
rss_file = '/tmp/rss.xml'
rss_file_get_py_file = '/usr/local/lgvp/rss_data_get.pyc'
Rss_enable = False
# call : second enblock.
write_number_show_timeout = 10 * 1000
dns_file = '/usr/local/ppp/resolv.conf'
register_update_time = 3000
# socket path for communicate with VDCIApp
vdci_socket_path = '/tmp/vdcisock'
# socket path for communicate width bt_stack
bt_socket_path = '/tmp/bluetooth_sock'
# socket path for communicate width Dect_stack
dect_socket_path = '/tmp/dectsock'
# socket path for communicate with Browser for MyAnn
myann_socket_path = '/tmp/browser_socket'
# socket path for communicate width VM
vm_socket_path = '/tmp/jvm_socket'
# hcryoo : [20070419_1]
callTradingRequestTimerT1 = 20000
callTradingRequesetedTimerT1 = 15000
# hcryoo : [20070419_1]==
# timer for video call
timerT1 = 7000
timerT2 = 5000
timerT3 = 1500 # new value for Type Approval
timerT4 = 300
timerT5 = 60000
timerT6 = 1000
timerPPPfail = 60000
timerRunVDCIApp = 2000
timerDelayInvite = 300
timerRegister = 15000
timerSnapshot = 3000
timerResize = 300
timeoutRegister = 50000 #30 secs.
# KA: [20071119] TI IMS subscriber
timeoutSubscriber = 2000 # 10secs
# KA: [20071119] TI IMS subscriber ==
timeoutDeregister = 3000 #3 secs.
timeoutInvite = 120000 # 2 minutes
timeoutReinvite = 15000
# DTMF for video call handshake
videocall_request_dtmf = 'C'
videocall_answer_dtmf = 'A'
# new define DTMF for video call handshake (20050921)
videocall_request_dtmf_bb = 'A'
videocall_answer_dtmf_bb = 'B'
videocall_request_dtmf_nb = 'C'
videocall_answer_dtmf_nb = 'D'
# modem recover counter
modem_recover_counter = 1
# interval of getting fps
timerGetFPS = 3000
# Expecting time until video call connected
videocall_time = \
(0, # start value
30, # nas handshaking value
3, # ppp negotiation value
3, # register value
8, # invite value
3) # join value
pstn_videocall_time = \
(0, # start value
15, # Step 1(Modem)
15, # Step 2(PPP)
15) # Step 3(SIP)
videocall_total_time = 0
for i in videocall_time:
videocall_total_time += i
# automata 순서
#automata_list = [
# ('multitap', 'lower'), ('multitap', 'first capital'), ('multitap', 'upper'),
# ('t9', 'lower'), ('t9', 'first capital'), ('t9', 'upper'),
# ('123', 0), ('symbol', 0)
#]
# shchun : remove t9 for global version
automata_list = [
('multitap', 'lower'), ('multitap', 'first capital'), ('multitap', 'upper'),
('123', 0), ('symbol', 0)
]
# KA: [20070831] hangul lvp-2000
# vpark 2006.08.28 automata add multitap/firstCapital in Korean
automata_list_hangul = [
('hangul', 0), ('multitap', 'upper'), ('multitap', 'lower'),
('123', 0), ('symbol', 0)
]
# automata 순서 multitap + number
automata_list_mult_num = [
('multitap', 'lower'), ('multitap', 'upper'),
('123', 0)
]
#, ('symbol', 0)
automata_list_mult_num_symbol = [
('multitap', 'lower'), ('multitap', 'upper'),
('123', 0), ('symbol', 0)
]
# T9
t9_word_list = 'var/t9.wordlist'
t9_word_list_max = 1024 * 1024
#limited dial number
limited_list_file = 'limited_list'
# SAC3
enable_sac3 = False
# AutoProvisionning
enable_autoprovision = True
# 240 hour
min = 60*1000
initial_sac3_timer = 2000
sac3_interval = 360*60*60
sac3_timeout = 120*1000
enable_sac4_timer8 = True
timer8 = 60 * min
def read_sac_conf():
global sac1, sac2, sac3, sac4, sac5
sac_file = 'sac.cfg'
for l in open(sac_file):
if l.find('#') >= 0:
l = l[:l.find('#')]
l = l.strip()
if not l:
continue
var_name, value = [t.strip() for t in l.split('=', 2)]
if var_name == 'SAC1':
sac1 = value
elif var_name == 'SAC2':
sac2 = value
elif var_name == 'SAC3':
sac3 = value
elif var_name == 'SAC4':
sac4 = value
elif var_name == 'SAC5':
sac5 = value
#read_sac_conf()
# sms 전송시 data사이에 gabage가 끼는지를 나타내는 값
# 이 값이 False인 경우 서버가 잘못된 message를 보낸 것으로 간주하고
# Error를 돌려준다. True인 경우 valid한 message type이 올때까지
# 읽는다.
sms_ignore_gabage = False
def get_predefined_melody(id):
return 'audios/other/Song0.imy'
# SMS/FAX/Email 의 저장 최대 개수
message_entry_max = 50
# EMAIL 의 저장 최대 개수
ipemail_entry_max = 20
# mmtools 저장 최대 개수
snap_shot_max = 50#20
video_record_max = 20
audio_record_max = 20
down_picture_save_max = 20
down_melody_save_max = 20
media_save_max = 20
media_min_free_storage = 5120 # KB
max_alarm_count = 10
max_calendar_count = 50
# telphone number의 최대길이
max_phone_number = 50
# phonebook의 name의 최대길이
max_pb_name = 50
#dual volume 적용여부(hs,spk vol.)
dual_audio_volume = True
# offhook후 얼마후에 dtmf를 보내야하는지
dial_wait_time = 3000
dtmf_first_interdigit_time = 10000
dtmf_call_time = 6000
# debug message
key_debug = False
stage_debug = False
ring_debug = False
audio_debug = False
dtmf_debug = False
sms_debug = False
utils_debug = False
sim_debug = False
sim_reader_debug = False
sac3_debug = False
modem_debug = False
mm_debug = False
videocall_debug = False
mmi_debug = False
roxia_debug = False
roxia_event = False
update_debug = False
ipemail_debug = False
elbrowser_debug = False
ntp_debug = False
mms_debug = False
# hcryoo : [20070430_1]
AEC_debug = False
VDCI_debug = False
# hcryoo : [20070430_1]==
# KA: [20070914] hangul debug
hangul_debug = False
myann_debug = False
mmcid = True
trap = True
provision_debug = False
# shchun : add flag for debugLogC, debugLogN
netc_debug = True
netn_debug = False
# end shchun
local_test_flag = False
snmp_debug = False
log_target = 1
# reject reason code
REASON_CONGESTION = '17'
REASON_FORBIDDEN = '403'
REASON_NOT_ACCEPTABLE_406 = '406'
REASON_BAD_EXTENSION = '420'
REASON_TEMPORARILY_UNAVAILABLE = '480'
REASON_NOT_ACCEPTABLE_HERE = '488'
REASON_NOT_ACCEPTABLE_606 = '606'
REASON_INTERNAL_SERVER_ERROR = '500'
REASON_SERVICE_UNAVAILABLE = '503'
REASON_SERVER_TIMEOUT = '504'
REASON_BUSY_HERE = '486'
REASON_BUSY_EVERYWHERE = '600'
REASON_REQUEST_CANCELLED = '487'
# supervision
NOT_SUPERVISION_CALL = 0
SUPERVISION_CALL = 1
#banking message
MESG_BANKING = 'cf'
MESG_BANKING_INFO = 'd'
#call message
MESG_OUTGOING_CALL = 'c'
MESG_INCOMING_CALL = 'i'
MESG_CALL_VIDEO = 'v'
PLAY_DIAL_TONE = 'DIALING'
PLAY_RINGBACK_TONE = 'RINGBACK'
PLAY_BUSY_TONE = 'BUSY'
PLAY_CG_TONE = 'CONGESTION'
# video call mesg types
MESG_PLAY_RINGBACK = 'l'
MESG_CALL_REJECT = 'r'
MESG_STARTUP = 's'
MESG_REGISTERATION = 'r'
#Roxia Begin jhbang 06.04.25
#MESG_REGISTER = 'r'
#Roxia End jhbang
MESG_UNREGISTER = 'u'
MESG_MSG_REJECT = 'l'
# play wave on TUP.
MESG_PLAY_RINGBACK_TUP = 't'
MESG_PLAY_RING_WAV = 'w'
MESG_PLAY_RING_AMR = 'y'
MESG_PLAY_START_TUP = 'p'
MESG_PLAY_STOP_TUP = 's'
# end
# play call waiting tone
MESG_CALL_WAITING_CODE1 = 't'
MESG_CALL_WAITING_START = 'p'
MESG_CALL_WAITING_STOP = 's'
MESG_CALL_WAITING_MESG1 = 'CALLWAITING'
MESG_CALL_WAITING_MESG2 = 1
# end
MESG_CALL_HOLD = 'o'
MESG_CALL_TRANSFER = 'x'
MESG_CALL_HOLD_ACTIVATE = 'a'
MESG_CALL_HOLD_DEACTIVATE = 'd'
MESG_CALL_TRANSFER_BLIND = 'b'
MESG_CALL_TRANSFER_CONSULTATION = 'c'
MESG_CALL_CONFERENCE = 'n'
# hcryoo : [20070502_1]
MESG_CALL_JOIN = 'j'
# hcryoo : [20070502_1]==
MESG_HANGUP = 'h'
# hcryoo : [20070419_1]
MESG_CANCEL = 'c'
# hcryoo : [20070419_1]==
MESG_SEND_DTMF = 'd'
MESG_CALL_AUDIO = 'a'
# hcryoo : [20071105_2] H/F처리
MESG_HOOK_FLASH = 'f'
SERVER_MESG_HOOK_FLASH = 'Y'
# hcryoo : [20071105_2] H/F처리==
#indirect video call request message
MESG_CALL_REINVITE = 'v'
MESG_CALL_ACCEPT = 'a'
MESG_SET_PARAMS = 'p'
MESG_GET_PARAMS = 'g'
MESG_GET_STATISTICS = 'a'
#ka...2007.05.25 indirect video call reject
MESG_INDIRECT_VIDEO_REJECT ='4'
MESG_SET_SUPERVISION = 's'
MESG_SET_VIDEO_MUTE = 'y'
MESG_SET_VIDEO_PATH = 'm'
MESG_SET_AUDIO_MUTE = 'k'
MESG_SET_DIMENSION = 'd'
MESG_GET_INFO = 'i'
MESG_SET_SHARPNESS = 'f'
MESG_GET_SNAPSHOT = 'b'
MESG_SET_VIDEO_BITRATE = 'b'
MESG_GET_QoS_Marking = 'o'
# hcryoo : [20070413_1]
MESG_EPT_DEVICE = 'p'
EPT_SET_DEVICE = '1'
EPT_ADD_DEVICE = '2'
EPT_DELETE_DEVICE = '3'
# hcryoo : [20070413_1]==
MESG_ERROR = 'e'
MESG_NOERROR = 'o'
# ka413 S/w volume control 2007.05.09
MESG_SW_VOLUME = 'v'
# tone play in EPT
MESG_PLAY_TONE = 't'
MESG_PLAY_TONE_ACTIVE = 'a'
MESG_PLAY_TONE_DEACTIVE = 'd'
MESG_TRAFFIC_INFO = 'tv'
MESG_TRAFFIC_INFO_PLAY = 'p'
MESG_TRAFFIC_INFO_STOP = 's'
MESG_TRAFFIC_INFO_MOVE = 'd'
MESG_AUTO_ANSWER_INFO = 'vp'
MESG_AUTO_ANSWER_PLAY = 'p'
MESG_AUTO_ANSWER_STOP = 's'
# video call Server message indicator
MESG_SERVER_NOTIFICATION = 'I'
MESG_SERVER_INCOMING = 'W'
MESG_SERVER_INCOMING_AUDIO = 'A'
MESG_SERVER_NOERROR = 'S'
MESG_SERVER_ERROR = 'E'
MESG_SERVER_STOPMEDIA = 'S'
# KT DEMO 20080126
MESG_SERVER_SESSION_OK = 'Z'
# video call Server message made with SUCCESS and FAIL
MESG_SERVER_KILLED = 'K'
MESG_SERVER_REGISTER = 'R'
MESG_SERVER_CALL = 'C'
MESG_SERVER_MODIFY_CALL = 'M'
MESG_SERVER_RINGING = 'G'
MESG_SERVER_HANGUP = 'H'
#MESG_SERVER_REMOTE_LEAVE = 'L'
MESG_SERVER_MESSAGE = 'M'
# hcryoo : [20071217_1] : KT ISMC 지원
MESG_SERVER_MMS = 'LL'
MESG_SERVER_KT_MESSAGE = 'L'
# hcryoo : [20071217_1] : KT ISMC 지원==
# hcryoo : [20070419_1]
MESG_SERVER_VIDEO_REQUESTED = 'B'
MESG_SERVER_VIDEO_PROCEEDING = 'O'
# hcryoo : [20070419_1]==
MESG_SERVER_DTMF = 'D'
MESG_SERVER_HOLD = 'F'
MESG_SERVER_HELD = 'P'
MESG_SERVER_TRANSFER = 'X'
# video call information message
INFO_FPS = '0'
INFO_VOL = '1'
INFO_MBW = '2'
INFO_CBW = '3'
INFO_MTU = '4'
frame_rate_ip = ('5', '10', '15', '20', '24')
frame_rate_pstn = ('2', '4', '5', '6.25', '10')
#modem speed: 37333->36000
modem_init1 = "AT+GCI=59;+VCID=1;+FCLASS=0;E0;&K3;+MS=V92,1,300,36000,300,36000\r"
modem_init2_upstream_on = "ATX3;+PIG=0;!481D=40;!481E=0D;!481F=C0;!4820=11;+DS=0;+DS44=0\r"
modem_init2_upstream_off = "ATX3;+PIG=1;!481D=40;!481E=0D;!481F=C0;!4820=11;+DS=0;+DS44=0\r"
modem_init3_upstream_on = "ATS6=2;+IBC=0;+MR=1;!482B=03;!1297=70\r"
modem_init3_upstream_off = "ATS6=2;+IBC=0;+MR=1;!482B=03;!1297=70\r"
# ###### browser config.
# socket path for communicate with fresco
browser_socket_path = '/tmp/webbrowser'
BRW_MSG_KEYS = 'd'
BRW_ACT_WRITE = 'w'
BRW_ACT_PREV = 'p'
BRW_ACT_FWD = 'f'
BRW_ACT_EXIT = 'x'
BRW_ACT_URL = 'u'
BRW_MSG_URL = 's'
BRW_RET_KEYS = 'r'
firmware_update_request_file = "FirmwareUpdateRequest.acfg"
configuration_request_file = "ConfigurationRequest.acfg"
report_Request_file = "ReportRequest.acfg"
ftpserver = "descarga.telefonica.net"
read_id_from_ppp = False
set_identity_record = 1
vendor_id = "lge.com"
user_id = 91707018
device_id = "LVP-2800.lge.com"
iface_mac_address = "00:04.29:12:12:12"
iface_ip_address = None
iface_gw_ip_address = None
firmware_version = "1.1.1"
hardware_version = "1.0"
set_autoconfig_protocol_record = 1
autoconfig_protocol_version = "1.1"
l5_protocol_used = "ftp"
set_info_request_record = 0
info_request_command = None
info_request_arg = None
set_info_response_record = 0
info_response_code = 0
info_response_phrase = None
firmware_files_path = None
firmware_files = []
configuration_file = None
set_firmware_update_request_record = 1
firmware_update_request_command = "RETR"
firmware_update_request_arg = None
set_firmware_update_response_record = 1
firmware_update_response_code = 266
#by elpis
firmware_update_response_code_phrase = "\"Transfer complete.\""
firmware_version_available = autoconfig_protocol_version
firmware_files_path = hardware_version + '/' + firmware_version
firmware_files = ["test.afz", "test2.afz"]
set_config_request_record = 1
config_request_command = "RETR"
config_request_arg = hardware_version + '/' + firmware_version + '/' + configuration_request_file
set_config_response_record = 1
config_response_code = 226
config_response_phrase = "\"Transfer Completed\""
set_dns_test_record = 1
#Roxia Begin jhbang 06.05.02
ip_null = '0.0.0.0'
#Roxia End jhbang
# eicho change value to default 06.04.26
primary_dns_server = "0.0.0.0"
secondary_dns_server = "0.0.0.0"
#outbound_proxy_sip = "sbc.ngn.rima-ted.net:5070"
outbound_proxy_sip = "sbc.ngn.rima-tde.net:5070"
outbound_proxy_sip_fqdn = "sbc.ngn.rima-tde.net" # eicho add.
outbound_proxy_sip_address = "81.47.224.4"
outbound_proxy_sip_port = 5070
outbound_proxy_sip_transport = "UDP"
registration_domain = "telefonica.net"
#MMW
pstn_registration_domain = "video.telefonica.net"
#end of MMW
# eicho end.
registration_period = 3600
sip_local_port = 5060
# eicho modify 06.11.07 for w.95 in BB
#sip_audio_port = 23000
#sip_video_port = 24000
sip_audio_port = 50000
sip_video_port = 51000
# end.
sip_register_port = 5060
set_outbound_proxy_sip_record = 1
icmp_packets_sent = 3
icmp_packets_received = 3
icmp_packets_lost = 0
roundtrip_time_min = 120
roundtrip_time_max = 160
roundtrip_time_avg = 145
set_sip_register_record = 1
sip_register_messages_sent = 2
sip_register_messages_received = 2
sip_register_response_code = 200
sip_register_response_phrase = "\"OK\""
set_firmware_update = 0
download_version = None
download_directory = None
download_files = []
def_privacy_image_file = 'photos/privacy/Smile.jpg'
set_firmware_file_request_record = 1
firmware_file_request_command = firmware_update_request_command
#changed
firmware_file_request_arg = []
set_firmware_file_response_record = 1
#changed
firmware_file_response_code = []
firmware_update_response_phrase = []
firmware_file_response_crc = []
total_download_byte = 0
stop_ring_timer = 120*1000 # 120 second
# services
CALL_FORWARD = 1
CALL_WAITING = 2
ANNOUNCEMENT_DURING_ABSENCE = 3
THREE_WAY_CONFERENCE = 4
PRE_PAID_CALL = 5
COLLECT_CALL = 6
RING_BACK_SERVICE = 7
VIDEO_CONFERENCE = 8
# FAC
FAC_TALL_FREE = '07077661541'
FAC_PRE_PAY_CARD = '070101'
FAC_AUTO_ANSWER_BASIC = '*66*'
FAC_AUTO_ANSWER_SMS_ENABLE = '*66'
FAC_AUTO_ANSWER_SMS_DISABLE = '#66*'
FAC_CALL_FORWARDING_ALWAYS_ENABLE = '*88'
FAC_CALL_FORWARDING_ALWAYS_DISABLE = '#88*'
FAC_CALL_FORWARDING_ALWAYS_CONFIRM = '*81*'
FAC_CALL_FORWARDING_BUSY_ENABLE = '*84'
FAC_CALL_FORWARDING_BUSY_DISABLE = '#88*'
FAC_CALL_FORWARDING_BUSY_CONFIRM = '*82*'
FAC_CALL_FORWARDING_NO_ANSWER_ENABLE = '*61*'
FAC_CALL_FORWARDING_NO_ANSWER_DISABLE = '#61#'
FAC_DO_NOT_DISTURB_ENABLE = '*26*'
FAC_DO_NOT_DISTURB_DISABLE = '#26#'
FAC_CALLER_ID_BLOCKING_PER_CALL = '067'
FAC_CALLER_ID_UNBLOCKING_PER_CALL = '*65'
FAC_SPEED_DIAL_8 = '*74*'
FAC_SPEED_DIAL_8_SET = '*74'
FAC_LAST_NUMBER_REDIAL = '*66#'
FAC_CALL_RETURN = '*92#'
FAC_CANCEL_CALL_WAITING = '*430#'
FAC_CLEAR_VOICE_MWI = '*99#'
FAC_ACCESS_TO_VOICE_PORTAL = '0000'
FAC_ACCESS_TO_AUTOMATIC_ANSWERING_DEVICE = '069'
FAC_NETWORK_VOICEMAIL_ENABLE = '*10#'
FAC_NETWORK_VOICEMAIL_DISABLE = '#10#'
FAC_NETWORK_VOICEMAIL_ACCESS = '069'
FAC_DO_NOT_DISTURB_PSTN_ENABLE = '*21*068#'
FAC_DO_NOT_DISTURB_PSTN_DISABLE = '#21#'
FAC_REJECT_ANONYMOUS_ENABLE = '*934#'
FAC_REJECT_ANONYMOUS_DISABLE = '#934#'
FAC_REJECT_SELECTIVE_ENABLE = '*93#'
FAC_REJECT_SELECTIVE_DISABLE = '#93#'
FAC_REJECT_SELECTIVE_REGISTER = '*93*'
FAC_REJECT_SELECTIVE_DEREGISTER = '#93*'
FAC_TELEFONICA_PREFIX_CODE = '1077'
FAC_HIDE_ID_CODE = '067'
# change 12->25 (since verion 0.9.40)
PROVISION_WAIT_BUSY_SEC = 25
PROVISION_WAIT_BUSY_TIME = 1
PROVISION_WAIT_VOLT_SEC = 3
PROVISION_WAIT_VOLT_TIME = 2
ring_cycle = 4000
special_cid_number = '1202'
special_cid_ring_timeout = 5000
special_cid_melody = 'audios/wait/dingdong.wav'
indirect_special_cid_timeout = 8000
indirect_total_timeout = 70000
service_not_available_code = '488'
#DIMENSION_REMOTE_LOCAL_SMALL = 8
#DIMENSION_REMOTE_BIG_LOCAL_SMALL = 9
#DIMENSION_REMOTE_BIG_ONLY = 10
#DIMENSION_REMOTE_CENTER = 11
#DIMENSION_RESIZE_ROTATE = 11 # 0, 1, 2
DIMENSION_REMOTE_BIG_ONLY_WQVGA = 8
DIMENSION_REMOTE_BIG_ONLY_CIF = 9
DIMENSION_REMOTE_BIG_LOCAL_SMALL_TOP = 10
DIMENSION_REMOTE_BIG_LOCAL_SMALL_WQVGA = 11
DIMENSION_LOCAL_BIG_REMOTE_SMALL_WQVGA = 12
DIMENSION_REMOTE_SMALL_CENTER_LOCAL_SMALL = 13 # 3G mobile
DIMENSION_LOCAL_SMALL_CENTER_REMOTE_SMALL = 14 # new 3G mobile
DIMENSION_TEMPORARY_SET = 0
DIMENSION_PERMANENT_SET = 1
# answer delay 06.05.29
MIDI_VOLUME = 30
TIME_WAIT_CALLEE_IP = 1
TdE_CWI_TONE_TERM = 4025 # 175 + 175 + 175 + 3500
GMT_diff = ['1', '0', '9']
# eicho add 06.10.16
'''
supp_feature_list = [FAC_NETWORK_VOICEMAIL_ENABLE, FAC_NETWORK_VOICEMAIL_DISABLE, FAC_NETWORK_VOICEMAIL_ACCESS, \
FAC_HIDE_ID_CODE, FAC_DO_NOT_DISTURB_PSTN_ENABLE, FAC_DO_NOT_DISTURB_PSTN_DISABLE, \
FAC_CALL_FORWARDING_ALWAYS_ENABLE, FAC_CALL_FORWARDING_ALWAYS_DISABLE, \
FAC_CALL_FORWARDING_BUSY_ENABLE, FAC_CALL_FORWARDING_BUSY_DISABLE, \
FAC_CALL_FORWARDING_NO_ANSWER_ENABLE, FAC_CALL_FORWARDING_NO_ANSWER_DISABLE, \
FAC_REJECT_ANONYMOUS_ENABLE, FAC_REJECT_ANONYMOUS_DISABLE, \
FAC_REJECT_SELECTIVE_ENABLE, FAC_REJECT_SELECTIVE_DISABLE, \
FAC_REJECT_SELECTIVE_REGISTER, FAC_REJECT_SELECTIVE_DEREGISTER, \
FAC_DO_NOT_DISTURB_ENABLE, FAC_DO_NOT_DISTURB_DISABLE, \
FAC_CALLER_ID_BLOCKING_PER_CALL, FAC_CALLER_ID_UNBLOCKING_PER_CALL, \
FAC_SPEED_DIAL_8, FAC_SPEED_DIAL_8_SET, \
FAC_CALL_RETURN, FAC_ACCESS_TO_AUTOMATIC_ANSWERING_DEVICE]
'''
supp_feature_list = [FAC_NETWORK_VOICEMAIL_ENABLE, FAC_NETWORK_VOICEMAIL_DISABLE, FAC_NETWORK_VOICEMAIL_ACCESS, \
FAC_DO_NOT_DISTURB_PSTN_ENABLE, FAC_DO_NOT_DISTURB_PSTN_DISABLE, \
FAC_CALL_FORWARDING_ALWAYS_ENABLE, FAC_CALL_FORWARDING_ALWAYS_DISABLE, \
FAC_CALL_FORWARDING_BUSY_ENABLE, FAC_CALL_FORWARDING_BUSY_DISABLE, \
FAC_CALL_FORWARDING_NO_ANSWER_ENABLE, FAC_CALL_FORWARDING_NO_ANSWER_DISABLE, \
FAC_REJECT_ANONYMOUS_ENABLE, FAC_REJECT_ANONYMOUS_DISABLE, \
FAC_REJECT_SELECTIVE_ENABLE, FAC_REJECT_SELECTIVE_DISABLE, \
FAC_REJECT_SELECTIVE_REGISTER, FAC_REJECT_SELECTIVE_DEREGISTER]
# default index -> 11 (None)
# KA: [20071006] TI IMS Codec Priority
# KA: [20071213] Codec Priority
audio_codec_num = '4'
video_codec_num = '3'
max_codec_num = '6'
codec_index_value_for_None = '6'
codec_value_for_None = '11'
default_audio_codec = '0' # vpark 2007.01.22 G.711-ulaw Check DEFAULT_PAYLOAD as well. These two should match.
no_audio_codec_selected_index = ['4', '4', '4', '4']
no_video_codec_selected_index = ['3', '3', '3']
all_audio_codec_list_index = ['0','1','2','3']
all_video_codec_list_index = ['0','1', '2']
audio_codec_list = ['12', '1', '0', '3', '11']
video_codec_list = ['10','7','14', '11']
# KA: [20071006] TI IMS Codec Priority ==
# KA: [20070912] KT DEMO
KT_INVITE_MESG9 = 1
LOCAL_TEST_URI = 0
KT_TEL_URI = 1
STANDARD_SIP_URI = 2
LOCAL_URI = 0
KT_URI = 1
STANDARD_LOCAL = 2
STANDARD_GLOBAL = 3
# KA: [20071010] TI IMS
CONFERENCE_SERVER = 'conference'
AUDIO = 0 # audio call
VIDEO = 1 # video call
MESG_SUBSCRIBER = 'sa'
MESG_SUBSCIRBER_REQUEST = 'a'
MESG_DE_SUBSCRIBER = 'sd'
MESG_DE_SUBSCRIBER_REQUEST = 'd'
MESG_SERVER_SUBSCRIBER = 'SA'
MESG_SERVER_DE_SUBSCRIBER = 'SD'
MESG_SERVER_SUBSCRIBER_FAIL = 'RI'
MESG_SERVER_UPDATE_SUCC = 'U'
MESG_SERVER_SESSION = 'SE'
MESG_PRECONDITION_SUCC ='PR'
MESG_PRECONDITION_UPDATE = 'u'
MESG_PRECONDITION_UPDATE_VIDEO = 'v'
MESG_PRECONDITION_UPDATE_AUDIO = 'a'
# KA: [20071126] DTMF nego
MESG_INFO_DTMF ='i'
MESG_INBAND_DTMF = 'b'
MESG_CALL_INFO = 'CS'
RtpTxMuteTimer = 300
# yylee for brightness & darkness control
brightness = ('0', '4', '8', '12', '16')
nightmode_darkness = ('15', '12', '8', '4', '0')
nightmode_check_timer = 1*min
keytone = [3, 4, 5, 6, 7]
effect_sound = [3, 4, 5, 6, 7]
ring_volume = [1, 3, 4, 5, 7]
stereo_volume = [3, 4, 5, 6, 7]
alarm_volume = [1,3,5,7,9]
browser_stereo_volume = [1, 2, 3, 4, 5]
SlideshowInterval = [2000, 5000, 10000, 20000, 30000, 60000]
ScreenSaverTimer = [1, 5, 10, 15, 30, 60]
ScreenOffTimer = [1, 5, 10, 15, 30, 60]
# MyAnn
EVT_APP_PAUSE = 0x0201
EVT_APP_RESUME = 0x0202
EVT_APP_START = 0x0205
EVT_APP_STOP = 0x0206
EVT_APP_MESSAGE_RECEIVED = 0x0211
WEB_KEY_STOP = 0x0701
WEB_KEY_START = 0x0702
WEB_SET_BG = 0x0703
WEB_SET_BELL = 0x0704
WEB_START_CALL = 0x0705
WEB_COOKIE_UPDATE_REQ = 0x0706
WEB_VIDEOSTREAM_START = 0x0707
WEB_VIDEOSTREAM_STOP = 0x0708
WEB_VIDEOSTREAM_RESULT = 0x0709
WEB_PIN_UPDATE_REQ = 0x070A
WEB_TELNUM_UPDATE_REQ = 0x070B
WEB_MAC_UPDATE_REQ = 0x070C
WEB_VERSION_UPDATE_REQ = 0x070D
WEB_SERIALNO_UPDATE_REQ = 0x070E
WEB_VOLUME_INFO = 0x070F
EVT_MMI_PHONEBOOK = 0x1101
EVT_MMI_EDIT = 0x1102
EVT_MMI_MEDIA_PLAY = 0x1103
EVT_MMI_JAVADOWNLOAD = 0x1104
EVT_MMI_BROWSERSTOP = 0x1105
EVT_MMI_BANKING = 0x1106
EVT_MMI_COOKIE_UPDATE_REQ = 0x1107
EVT_MMI_MESSAGE_CONFIRMED = 0x1108
EVT_MMI_ADDRESSSYNC = 0x1109 #added by yssong(2008.11.05)::to show address sync menu
EDIT_NUM_ONLY_MODE = '0'
EDIT_ALPAL_NUM_MODE = '1'
EDIT_HANGUL_ONLY_MODE = '2'
EDIT_PASSWORD_MODE = '3'
EDIT_PHONENUM_MODE = '4'
EDIT_DEFAULT_MODE = '5'
#myann_test_flag = False #deleted by yssong(2008.10.30)
myann_test_flag = True #added by yssong(2008.10.30)
#MY_SERVICE_HOME_URL = 'http://wapmain.ktann.com/main/main.jsp' #deleted by yssong(2008.10.30)
MY_SERVICE_HOME_URL = 'http://www.google.co.uk' #added by yssong(2008.10.30)
#BELL_DOWNLOAD_URL = 'http://wapmain.ktann.com/auth2/auth_other.jsp?gubun=8000' #deleted by yssong(2008.10.30)
BELL_DOWNLOAD_URL = 'http://www.google.co.uk' #added by yssong(2008.10.30)
#BACKGROUND_DOWNLOAD_URL = 'http://wapmain.ktann.com/auth2/auth_other.jsp?gubun=8000' #deleted by yssong(2008.10.30)
BACKGROUND_DOWNLOAD_URL = 'http://www.google.co.uk' #added by yssong(2008.10.30)
HANGUL_URL = 'http://wapmain.ktann.com/hangeul/hangeul_result02.jsp' # TEST: http://soip.ktann.com/hangeul/hangeul_result02.jsp
PHONEBOOK_URL = 'http://nab-soap.ktann.com/ABImport/' # TEST: http://222.106.149.10:8080/ABImport/
#BELL_DOWNLOAD_URL = 'http://wapmmc.ktann.com/phone/phone_main.jsp'
#BACKGROUND_DOWNLOAD_URL = 'http://wapmmc.ktann.com/phone/phone_main.jsp'
SIP_COOKIE_FILE = '/tmp/cookies'
WAP_COOKIE_FILE = '/tmp/wap_cookies'
SYNC_COOKIE_FILE = '/tmp/sync_cookies'
#TrafficHost = '210.183.241.147' # woomyundong server
#TrafficHost = '125.159.21.9' # Hyewha server
#TrafficHost = 'SOIP1TRAFFIC.KTANN.COM' # Hyewha server name
#TrafficPort = '8888'
TRAFFICHOST = 'soip1traffic.ktann.com'
TRAFFICPORT = '8888'
#Screeen Saver
ScreenSaverDir = '/usr/local/lgvp/'
lgvp = '/usr/local/lgvp/'
MYNUMBER_SHOW = False
test_menu = True
KT_500 = False
MMS_HTTP_SERVER = '125.147.1.228:8087' #TEST: '222.106.149.10:8087'
# MMI configuration : introduced in IP3870M
monday_first = True
datetime_24hour = True
global_version_flag = 1 # KT=0, global=1
KT_profile_enable = False