diff options
author | Benny Prijono <bennylp@teluu.com> | 2006-10-16 15:52:31 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2006-10-16 15:52:31 +0000 |
commit | 74d582d15d820c18bf0d8b0c309a0dcd0968738d (patch) | |
tree | 4d21a36676c3ef451367b517545b5a354c7ee53d | |
parent | 44e5ec721364e4d51ad849d23ab7982b57dd4ce6 (diff) |
Added logging in pjsua wince
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@774 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r-- | pjlib/include/pj/config_site_sample.h | 5 | ||||
-rw-r--r-- | pjsip-apps/src/pjsua_wince/pjsua_wince.cpp | 8 |
2 files changed, 6 insertions, 7 deletions
diff --git a/pjlib/include/pj/config_site_sample.h b/pjlib/include/pj/config_site_sample.h index dfbdb2d7..63d34c9e 100644 --- a/pjlib/include/pj/config_site_sample.h +++ b/pjlib/include/pj/config_site_sample.h @@ -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 diff --git a/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp b/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp index 2f3fc43e..1ece01d0 100644 --- a/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp +++ b/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp @@ -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; |