- Timestamp:
- Mar 11, 2008 1:18:48 PM (17 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pocketpj
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJ.rc
r1819 r1856 98 98 END 99 99 100 IDD_SETTING DIALOG DISCARDABLE 0, 0, 140, 1 19100 IDD_SETTING DIALOG DISCARDABLE 0, 0, 140, 127 101 101 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU 102 102 CAPTION "PocketPJ Settings.." … … 112 112 WS_TABSTOP,7,65,47,10 113 113 EDITTEXT IDC_STUN_SRV,56,64,77,12,ES_AUTOHSCROLL 114 CONTROL "ICE",IDC_ICE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7, 80,114 CONTROL "ICE",IDC_ICE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,79, 115 115 27,10 116 116 CONTROL "SRTP",IDC_SRTP,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,47, 117 80,33,10117 79,33,10 118 118 CONTROL "PUBLISH",IDC_PUBLISH,"Button",BS_AUTOCHECKBOX | 119 WS_TABSTOP,85, 80,43,10119 WS_TABSTOP,85,79,43,10 120 120 EDITTEXT IDC_DNS,38,49,78,12,ES_AUTOHSCROLL 121 121 LTEXT "DNS:",IDC_STATIC,8,50,30,9 122 PUSHBUTTON "OK",IDOK,17,98,50,14 123 PUSHBUTTON "Cancel",IDCANCEL,73,98,50,14 122 PUSHBUTTON "OK",IDOK,17,106,50,14 123 PUSHBUTTON "Cancel",IDCANCEL,73,106,50,14 124 CONTROL "Suppress echo, tail:",IDC_ECHO_SUPPRESS,"Button", 125 BS_AUTOCHECKBOX | WS_TABSTOP,7,92,79,10 126 EDITTEXT IDC_EC_TAIL,89,91,33,12,ES_AUTOHSCROLL 124 127 END 125 128 … … 190 193 RIGHTMARGIN, 133 191 194 TOPMARGIN, 7 192 BOTTOMMARGIN, 1 12195 BOTTOMMARGIN, 120 193 196 END 194 197 END -
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJ.vcc
r1820 r1856 13 13 14 14 ResourceCount=5 15 Resource2=IDD_ POCKETPJ_DIALOG16 Resource3=IDD_ SETTING15 Resource2=IDD_SETTING 16 Resource3=IDD_POCKETPJ_DIALOG 17 17 Resource4=IDR_ACC_MENU 18 18 Resource1=IDR_MAINFRAME … … 67 67 Type=1 68 68 Class=CSettingsDlg 69 ControlCount=1 569 ControlCount=17 70 70 Control1=IDC_STATIC,static,1342308352 71 71 Control2=IDC_DOMAIN,edit,1350631552 … … 83 83 Control14=IDOK,button,1342242816 84 84 Control15=IDCANCEL,button,1342242816 85 Control16=IDC_ECHO_SUPPRESS,button,1342242819 86 Control17=IDC_EC_TAIL,edit,1350631552 85 87 86 88 [CLS:CSettingsDlg] … … 91 93 Filter=D 92 94 VirtualFilter=dWC 93 LastObject= CSettingsDlg95 LastObject=IDC_ECHO_SUPPRESS 94 96 -
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJDlg.cpp
r1820 r1856 179 179 media_cfg.thread_cnt = 1; 180 180 media_cfg.enable_ice = m_Cfg.m_UseIce; 181 181 182 if (m_Cfg.m_EchoSuppress) { 183 media_cfg.ec_options = PJMEDIA_ECHO_SIMPLE; 184 media_cfg.ec_tail_len = m_Cfg.m_EcTail; 185 } 186 182 187 // Init 183 188 PopUp_Modify(POPUP_REGISTRATION, POPUP_EL_TITLE3, "Initializing.."); -
pjproject/trunk/pjsip-apps/src/pocketpj/SettingsDlg.cpp
r1819 r1856 25 25 #define REG_BUDDY_CNT _T("BuddyCnt") 26 26 #define REG_BUDDY_X _T("Buddy%u") 27 #define REG_ENABLE_EC _T("EnableEC") 28 #define REG_EC_TAIL _T("ECTail") 27 29 28 30 … … 70 72 if (key.QueryValue(dwordVal, REG_USE_STUN) == ERROR_SUCCESS) { 71 73 m_UseStun = dwordVal != 0; 74 } else { 75 m_UseStun = 0; 72 76 } 73 77 74 78 if (key.QueryValue(dwordVal, REG_USE_ICE) == ERROR_SUCCESS) { 75 79 m_UseIce = dwordVal != 0; 80 } else { 81 m_UseIce = 0; 76 82 } 77 83 … … 79 85 if (key.QueryValue(dwordVal, REG_USE_SRTP) == ERROR_SUCCESS) { 80 86 m_UseSrtp = dwordVal != 0; 87 } else { 88 m_UseSrtp = 0; 81 89 } 82 90 … … 85 93 if (key.QueryValue(dwordVal, REG_USE_PUBLISH) == ERROR_SUCCESS) { 86 94 m_UsePublish = dwordVal != 0; 95 } 96 97 cbData = sizeof(dwordVal); 98 if (key.QueryValue(dwordVal, REG_ENABLE_EC) == ERROR_SUCCESS) { 99 m_EchoSuppress = dwordVal != 0; 100 } else { 101 m_EchoSuppress = 0; 102 } 103 104 cbData = sizeof(dwordVal); 105 if (key.QueryValue(dwordVal, REG_EC_TAIL) == ERROR_SUCCESS) { 106 m_EcTail = dwordVal; 107 } else { 108 m_EcTail = 2; 87 109 } 88 110 … … 128 150 key.SetValue(m_UsePublish, REG_USE_PUBLISH); 129 151 152 key.SetValue(m_EchoSuppress, REG_ENABLE_EC); 153 key.SetValue(m_EcTail, REG_EC_TAIL); 154 130 155 key.SetValue(m_BuddyList.GetSize(), REG_BUDDY_CNT); 131 156 132 unsignedi;157 int i; 133 158 for (i=0; i<m_BuddyList.GetSize(); ++i) { 134 159 CString entry; … … 158 183 m_User = _T(""); 159 184 m_Dns = _T(""); 185 m_EchoSuppress = FALSE; 186 m_EcTail = _T(""); 160 187 //}}AFX_DATA_INIT 161 188 … … 169 196 m_User = m_Cfg.m_User; 170 197 m_Dns = m_Cfg.m_DNS; 198 m_EchoSuppress = m_Cfg.m_EchoSuppress; 199 200 CString s; 201 s.Format(_T("%d"), m_Cfg.m_EcTail); 202 m_EcTail = s; 171 203 } 172 204 … … 185 217 DDX_Text(pDX, IDC_USER, m_User); 186 218 DDX_Text(pDX, IDC_DNS, m_Dns); 219 DDX_Check(pDX, IDC_ECHO_SUPPRESS, m_EchoSuppress); 220 DDX_Text(pDX, IDC_EC_TAIL, m_EcTail); 187 221 //}}AFX_DATA_MAP 188 222 } … … 191 225 BEGIN_MESSAGE_MAP(CSettingsDlg, CDialog) 192 226 //{{AFX_MSG_MAP(CSettingsDlg) 193 // NOTE: the ClassWizard will add message map macros here 227 ON_BN_CLICKED(IDC_STUN, OnStun) 228 ON_BN_CLICKED(IDC_ECHO_SUPPRESS, OnEchoSuppress) 194 229 //}}AFX_MSG_MAP 195 230 END_MESSAGE_MAP() … … 204 239 if (rc == IDOK) { 205 240 m_Cfg.m_Domain = m_Domain; 206 m_Cfg.m_UseIce = m_ICE ;241 m_Cfg.m_UseIce = m_ICE != 0; 207 242 m_Cfg.m_Password = m_Passwd; 208 m_Cfg.m_UsePublish = m_PUBLISH ;209 m_Cfg.m_UseSrtp = m_SRTP ;210 m_Cfg.m_UseStun = m_STUN ;243 m_Cfg.m_UsePublish = m_PUBLISH != 0; 244 m_Cfg.m_UseSrtp = m_SRTP != 0; 245 m_Cfg.m_UseStun = m_STUN != 0; 211 246 m_Cfg.m_StunSrv = m_StunSrv; 212 247 m_Cfg.m_User = m_User; 213 248 m_Cfg.m_DNS = m_Dns; 249 m_Cfg.m_EchoSuppress= m_EchoSuppress != 0; 250 m_Cfg.m_EcTail = _ttoi(m_EcTail); 214 251 } 215 252 216 253 return rc; 217 254 } 255 256 void CSettingsDlg::OnStun() 257 { 258 } 259 260 void CSettingsDlg::OnEchoSuppress() 261 { 262 } -
pjproject/trunk/pjsip-apps/src/pocketpj/SettingsDlg.h
r1819 r1856 22 22 bool m_UsePublish; 23 23 CString m_DNS; 24 bool m_EchoSuppress; 25 DWORD m_EcTail; 24 26 25 27 CArray<CString,CString> m_BuddyList; … … 54 56 CString m_User; 55 57 CString m_Dns; 58 BOOL m_EchoSuppress; 59 CString m_EcTail; 56 60 //}}AFX_DATA 57 61 … … 72 76 // Generated message map functions 73 77 //{{AFX_MSG(CSettingsDlg) 74 // NOTE: the ClassWizard will add member functions here 78 afx_msg void OnStun(); 79 afx_msg void OnEchoSuppress(); 75 80 //}}AFX_MSG 76 81 DECLARE_MESSAGE_MAP() -
pjproject/trunk/pjsip-apps/src/pocketpj/resource.h
r1819 r1856 34 34 #define IDC_DNS 1019 35 35 #define IDC_TITLE3 1020 36 #define IDC_ECHO_SUPPRESS 1020 36 37 #define IDC_BUTTON1 1021 38 #define IDC_EC_TAIL 1021 37 39 #define IDC_BUTTON2 1022 38 40 #define IDS_CAP_ONLINE 32772
Note: See TracChangeset
for help on using the changeset viewer.