Added logging in pjsua wince
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@774 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
52dfdee5a2
commit
4e05b47e23
|
@ -14,11 +14,6 @@
|
|||
* Typical configuration for WinCE target.
|
||||
*/
|
||||
#if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE!=0
|
||||
# if !defined(PJ_DEBUG) || PJ_DEBUG==0
|
||||
# define PJ_LOG_MAX_LEVEL 0
|
||||
# define PJ_ENABLE_EXTRA_CHECK 0
|
||||
# endif
|
||||
|
||||
# define PJ_HAS_FLOATING_POINT 0
|
||||
|
||||
# define PJMEDIA_HAS_G711_PLC 0
|
||||
|
|
|
@ -250,7 +250,6 @@ static void on_typing(pjsua_call_id call_id, const pj_str_t *from,
|
|||
}
|
||||
|
||||
|
||||
|
||||
static BOOL OnInitStack(void)
|
||||
{
|
||||
pjsua_config cfg;
|
||||
|
@ -275,13 +274,18 @@ static BOOL OnInitStack(void)
|
|||
|
||||
/* Init configs */
|
||||
pjsua_config_default(&cfg);
|
||||
pjsua_logging_config_default(&log_cfg);
|
||||
pjsua_media_config_default(&media_cfg);
|
||||
pjsua_transport_config_default(&udp_cfg);
|
||||
udp_cfg.port = 50060;
|
||||
pjsua_transport_config_default(&rtp_cfg);
|
||||
rtp_cfg.port = 40000;
|
||||
|
||||
pjsua_logging_config_default(&log_cfg);
|
||||
log_cfg.level = 5;
|
||||
log_cfg.log_filename = pj_str("\\pjsua.txt");
|
||||
log_cfg.msg_logging = 1;
|
||||
log_cfg.decor = pj_log_get_decor() | PJ_LOG_HAS_CR;
|
||||
|
||||
/* Setup media */
|
||||
media_cfg.clock_rate = 8000;
|
||||
media_cfg.ec_options = PJMEDIA_ECHO_SIMPLE;
|
||||
|
|
Loading…
Reference in New Issue