Changeset 656 for pjproject/trunk/pjsip-apps/src/pjsua_wince
- Timestamp:
- Aug 6, 2006 6:23:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua_wince/pjsua_wince.cpp
r652 r656 150 150 151 151 } 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; 154 154 155 155 if (call_info.remote_contact.slen) … … 157 157 else 158 158 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 160 163 SetCallStatus(call_info.state_text.ptr, call_info.state_text.slen); 161 164 } … … 193 196 194 197 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); 196 201 return; 197 202 } … … 280 285 /* Setup media */ 281 286 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; 285 290 286 291 /* Initialize application callbacks */ … … 301 306 302 307 /* 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); 307 313 pjsua_codec_set_priority(pj_cstr(&tmp, "speex/32000"), 0); 308 314 … … 571 577 MessageBox(NULL, TEXT("Can not answer"), 572 578 TEXT("There is no call!"), MB_OK); 579 else 580 pjsua_call_answer(g_current_call, 200, NULL, NULL); 573 581 break; 574 582 case ID_MENU_DISCONNECT:
Note: See TracChangeset
for help on using the changeset viewer.