- Timestamp:
- Apr 27, 2009 7:18:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/vs-reorg2/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp
r2638 r2654 287 287 static void on_buddy_state(pjsua_buddy_id buddy_id) 288 288 { 289 /* Currently this is not processed */ 290 PJ_UNUSED_ARG(buddy_id); 289 291 } 290 292 … … 297 299 const pj_str_t *mime_type, const pj_str_t *text) 298 300 { 301 /* Currently this is not processed */ 302 PJ_UNUSED_ARG(call_id); 303 PJ_UNUSED_ARG(from); 304 PJ_UNUSED_ARG(to); 305 PJ_UNUSED_ARG(contact); 306 PJ_UNUSED_ARG(mime_type); 307 PJ_UNUSED_ARG(text); 299 308 } 300 309 … … 307 316 pj_bool_t is_typing) 308 317 { 318 /* Currently this is not processed */ 319 PJ_UNUSED_ARG(call_id); 320 PJ_UNUSED_ARG(from); 321 PJ_UNUSED_ARG(to); 322 PJ_UNUSED_ARG(contact); 323 PJ_UNUSED_ARG(is_typing); 324 } 325 326 /** 327 * Callback upon NAT detection completion 328 */ 329 static void nat_detect_cb(const pj_stun_nat_detect_result *res) 330 { 331 if (res->status != PJ_SUCCESS) { 332 char msg[250]; 333 pj_ansi_snprintf(msg, sizeof(msg), "NAT detection failed: %s", 334 res->status_text); 335 SetCallStatus(msg, pj_ansi_strlen(msg)); 336 } else { 337 char msg[250]; 338 pj_ansi_snprintf(msg, sizeof(msg), "NAT type is %s", 339 res->nat_type_name); 340 SetCallStatus(msg, pj_ansi_strlen(msg)); 341 } 309 342 } 310 343 … … 363 396 cfg.cb.on_pager = &on_pager; 364 397 cfg.cb.on_typing = &on_typing; 398 cfg.cb.on_nat_detect = &nat_detect_cb; 365 399 366 400 if (SIP_PROXY) { … … 472 506 MSG msg; 473 507 HACCEL hAccelTable; 474 475 508 509 PJ_UNUSED_ARG(lpCmdLine); 510 PJ_UNUSED_ARG(hPrevInstance); 476 511 477 512 // Perform application initialization: … … 513 548 514 549 return RegisterClass(&wc); 515 }516 517 518 /* Callback upon NAT detection completion */519 static void nat_detect_cb(const pj_stun_nat_detect_result *res)520 {521 if (res->status != PJ_SUCCESS) {522 char msg[250];523 pj_ansi_snprintf(msg, sizeof(msg), "NAT detection failed: %s",524 res->status_text);525 SetCallStatus(msg, pj_ansi_strlen(msg));526 } else {527 char msg[250];528 pj_ansi_snprintf(msg, sizeof(msg), "NAT type is %s",529 res->nat_type_name);530 SetCallStatus(msg, pj_ansi_strlen(msg));531 }532 550 } 533 551
Note: See TracChangeset
for help on using the changeset viewer.