From e597fd48b9586700656f2a5760153ef65790a44b Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Sat, 5 Aug 2006 21:07:15 +0000 Subject: Set to use PCMU and disable AEC for WinCE target. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@652 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip-apps/src/pjsua_wince/pjsua_wince.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'pjsip-apps') diff --git a/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp b/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp index 177ab957..39242f3d 100644 --- a/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp +++ b/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp @@ -38,7 +38,7 @@ enum ID_BTN_ACTION, }; -#define DEFAULT_URI "sip:192.168.0.7" +#define DEFAULT_URI "sip:192.168.0.66" // Forward declarations of functions included in this code module: @@ -255,6 +255,7 @@ static BOOL OnInitStack(void) pjsua_transport_config rtp_cfg; pjsua_transport_id transport_id; pjsua_transport_info transport_info; + pj_str_t tmp; pj_status_t status; /* Create pjsua */ @@ -278,6 +279,9 @@ static BOOL OnInitStack(void) /* Setup media */ media_cfg.clock_rate = 8000; + media_cfg.ec_tail_len = 0; + media_cfg.quality = 3; + media_cfg.ptime = 0; /* Initialize application callbacks */ cfg.cb.on_call_state = &on_call_state; @@ -296,8 +300,12 @@ static BOOL OnInitStack(void) } /* Set codec priority */ - pj_str_t codec = pj_str("pcmu"); - pjsua_codec_set_priority(&codec, 254); + pjsua_codec_set_priority(pj_cstr(&tmp, "gsm"), 254); + pjsua_codec_set_priority(pj_cstr(&tmp, "pcmu"), 253); + pjsua_codec_set_priority(pj_cstr(&tmp, "pcma"), 252); + pjsua_codec_set_priority(pj_cstr(&tmp, "speex/16000"), 0); + pjsua_codec_set_priority(pj_cstr(&tmp, "speex/32000"), 0); + /* Add UDP transport and the corresponding PJSUA account */ status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, -- cgit v1.2.3