Ticket #626: Fixed PocketPJ build error when SRTP is unused (thanks David Parker for the patch).

git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2282 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
Nanang Izzuddin 2008-09-16 15:15:45 +00:00
parent 0365e461e5
commit 51b1e5531b
1 changed files with 3 additions and 0 deletions

View File

@ -278,8 +278,11 @@ BOOL CPocketPJDlg::Restart()
acc_cfg.cred_info[0].data_type = 0;
acc_cfg.cred_info[0].data = pj_str(passwd);
#if defined(PJMEDIA_HAS_SRTP) && (PJMEDIA_HAS_SRTP != 0)
acc_cfg.use_srtp = (m_Cfg.m_UseSrtp ? PJMEDIA_SRTP_OPTIONAL : PJMEDIA_SRTP_DISABLED);
acc_cfg.srtp_secure_signaling = 0;
#endif
acc_cfg.publish_enabled = m_Cfg.m_UsePublish;
char route[80];