Ignore:
Timestamp:
Aug 6, 2006 6:23:56 PM (18 years ago)
Author:
bennylp
Message:

Echo suppressor tuning and testing on WincE, and also added config_site_sample.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp

    r652 r656  
    150150 
    151151    } else { 
    152         if (g_current_call == PJSUA_INVALID_ID) 
    153             g_current_call = call_id; 
     152        //if (g_current_call == PJSUA_INVALID_ID) 
     153        //    g_current_call = call_id; 
    154154 
    155155        if (call_info.remote_contact.slen) 
     
    157157        else 
    158158            SetURI(call_info.remote_info.ptr, call_info.remote_info.slen, false); 
    159         SetAction(ID_MENU_DISCONNECT); 
     159 
     160        if (call_info.state == PJSIP_INV_STATE_CONFIRMED) 
     161            SetAction(ID_MENU_DISCONNECT); 
     162 
    160163        SetCallStatus(call_info.state_text.ptr, call_info.state_text.slen); 
    161164    } 
     
    193196 
    194197    if (g_current_call != PJSUA_INVALID_ID) { 
    195         pjsua_call_answer(call_id, PJSIP_SC_BUSY_HERE, NULL, NULL); 
     198        pj_str_t reason; 
     199        reason = pj_str("Another call is in progress"); 
     200        pjsua_call_answer(call_id, PJSIP_SC_BUSY_HERE, &reason, NULL); 
    196201        return; 
    197202    } 
     
    280285    /* Setup media */ 
    281286    media_cfg.clock_rate = 8000; 
    282     media_cfg.ec_tail_len = 0; 
    283     media_cfg.quality = 3; 
    284     media_cfg.ptime = 0; 
     287    //media_cfg.ec_tail_len = ; 
     288    media_cfg.quality = 1; 
     289    media_cfg.ptime = 20; 
    285290 
    286291    /* Initialize application callbacks */ 
     
    301306 
    302307    /* Set codec priority */ 
    303     pjsua_codec_set_priority(pj_cstr(&tmp, "gsm"), 254); 
    304     pjsua_codec_set_priority(pj_cstr(&tmp, "pcmu"), 253); 
    305     pjsua_codec_set_priority(pj_cstr(&tmp, "pcma"), 252); 
    306     pjsua_codec_set_priority(pj_cstr(&tmp, "speex/16000"), 0); 
     308    pjsua_codec_set_priority(pj_cstr(&tmp, "gsm"), 10); 
     309    pjsua_codec_set_priority(pj_cstr(&tmp, "pcmu"), 240); 
     310    pjsua_codec_set_priority(pj_cstr(&tmp, "pcma"), 230); 
     311    pjsua_codec_set_priority(pj_cstr(&tmp, "speex/8000"), 190); 
     312    pjsua_codec_set_priority(pj_cstr(&tmp, "speex/16000"), 180); 
    307313    pjsua_codec_set_priority(pj_cstr(&tmp, "speex/32000"), 0); 
    308314 
     
    571577                MessageBox(NULL, TEXT("Can not answer"),  
    572578                           TEXT("There is no call!"), MB_OK); 
     579            else 
     580                pjsua_call_answer(g_current_call, 200, NULL, NULL); 
    573581            break; 
    574582        case ID_MENU_DISCONNECT: 
Note: See TracChangeset for help on using the changeset viewer.