Changeset 3073
- Timestamp:
- Jan 25, 2010 5:38:07 PM (15 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/pocketpj
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJDlg.cpp
r3036 r3073 395 395 } 396 396 397 void CPocketPJDlg::OnIncomingCall() 398 { 399 pjsua_call_info ci; 400 401 pjsua_call_get_info(0, &ci); 402 403 PopUp_Show(POPUP_CALL, "Incoming call..", ci.remote_info.ptr, "", 404 "Answer", "Hangup", 0); 405 pjsua_call_answer(0, 180, NULL, NULL); 406 if (m_Cfg.m_AutoAnswer) 407 OnPopUpButton(1); 408 } 409 397 410 void CPocketPJDlg::OnCallState() 398 411 { … … 409 422 break; 410 423 case PJSIP_INV_STATE_INCOMING: /**< After INVITE is received. */ 411 PopUp_Show(POPUP_CALL, "Incoming call..", ci.remote_info.ptr, "", 412 "Answer", "Hangup", 0); 413 pjsua_call_answer(0, 180, NULL, NULL); 414 if (m_Cfg.m_AutoAnswer) 415 OnPopUpButton(1); 424 OnIncomingCall(); 416 425 break; 417 426 case PJSIP_INV_STATE_EARLY: /**< After response with To tag. */ … … 455 464 PJ_UNUSED_ARG(call_id); 456 465 PJ_UNUSED_ARG(rdata); 466 467 theDlg->OnIncomingCall(); 457 468 } 458 469 -
pjproject/trunk/pjsip-apps/src/pocketpj/PocketPJDlg.h
r1819 r3073 24 24 25 25 void OnPopUpButton(int btnNo); 26 void OnIncomingCall(); 26 27 27 28 // Dialog Data … … 40 41 virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support 41 42 //}}AFX_VIRTUAL 43 42 44 43 45 // Implementation
Note: See TracChangeset
for help on using the changeset viewer.