Changeset 4347 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Feb 13, 2013 10:19:25 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4330 r4347 378 378 puts (" --no-force-lr Allow strict-route to be used (i.e. do not force lr)"); 379 379 puts (" --accept-redirect=N Specify how to handle call redirect (3xx) response."); 380 puts (" 0: reject, 1: follow automatically (default), 2: ask"); 380 puts (" 0: reject, 1: follow automatically,"); 381 puts (" 2: follow + replace To header (default), 3: ask"); 381 382 382 383 puts (""); … … 405 406 pjsua_transport_config_default(&cfg->rtp_cfg); 406 407 cfg->rtp_cfg.port = 4000; 407 cfg->redir_op = PJSIP_REDIRECT_ACCEPT ;408 cfg->redir_op = PJSIP_REDIRECT_ACCEPT_REPLACE; 408 409 cfg->duration = NO_LIMIT; 409 410 cfg->wav_id = PJSUA_INVALID_ID; … … 2242 2243 2243 2244 /* accept-redirect */ 2244 if (config->redir_op != PJSIP_REDIRECT_ACCEPT ) {2245 if (config->redir_op != PJSIP_REDIRECT_ACCEPT_REPLACE) { 2245 2246 pj_ansi_sprintf(line, "--accept-redirect %d\n", 2246 2247 config->redir_op); … … 3052 3053 3053 3054 PJ_LOG(3,(THIS_FILE, "Call %d is being redirected to %.*s. " 3054 "Press 'Ra' to accept , 'Rr' to reject, or 'Rd' to"3055 " disconnect.",3055 "Press 'Ra' to accept+replace To header, 'RA' to accept, " 3056 "'Rr' to reject, or 'Rd' to disconnect.", 3056 3057 call_id, len, uristr)); 3057 3058 } … … 5382 5383 } else if (menuin[1] == 'a') { 5383 5384 pjsua_call_process_redirect(current_call, 5385 PJSIP_REDIRECT_ACCEPT_REPLACE); 5386 } else if (menuin[1] == 'A') { 5387 pjsua_call_process_redirect(current_call, 5384 5388 PJSIP_REDIRECT_ACCEPT); 5385 5389 } else if (menuin[1] == 'r') {
Note: See TracChangeset
for help on using the changeset viewer.