Changeset 6026 for pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
- Timestamp:
- Jun 12, 2019 6:00:35 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/pjsua2_demo.cpp
r5986 r6026 175 175 176 176 177 static void mainProg1(Endpoint &ep) throw(Error)177 static void mainProg1(Endpoint &ep) 178 178 { 179 179 // Init library … … 198 198 "test1", 0, "test1") ); 199 199 MyAccount *acc(new MyAccount); 200 acc->create(acc_cfg); 200 try { 201 acc->create(acc_cfg); 202 } catch (...) { 203 std::cout << "Adding account failed" << std::endl; 204 } 201 205 202 206 pj_thread_sleep(2000); … … 220 224 } 221 225 222 static void mainProg2() throw(Error)226 static void mainProg2() 223 227 { 224 228 string json_str; … … 266 270 267 271 268 static void mainProg3(Endpoint &ep) throw(Error)272 static void mainProg3(Endpoint &ep) 269 273 { 270 274 const char *paths[] = { "../../../../tests/pjsua/wavs/input.16.wav", … … 325 329 326 330 327 static void mainProg() throw(Error)331 static void mainProg() 328 332 { 329 333 string json_str; … … 377 381 378 382 379 static void mainProg4(Endpoint &ep) throw(Error)383 static void mainProg4(Endpoint &ep) 380 384 { 381 385 // Init library
Note: See TracChangeset
for help on using the changeset viewer.