Changeset 2966 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Oct 25, 2009 9:02:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2956 r2966 60 60 pj_bool_t no_refersub; 61 61 pj_bool_t ipv6; 62 pj_bool_t enable_qos; 62 63 pj_bool_t no_tcp; 63 64 pj_bool_t no_udp; … … 208 209 puts (" --ipv6 Use IPv6 instead for SIP and media."); 209 210 #endif 211 puts (" --set-qos Enable QoS tagging for SIP and media."); 210 212 puts (" --local-port=port Set TCP/UDP port. This implicitly enables both "); 211 213 puts (" TCP and UDP transports on the specified port, unless"); … … 501 503 OPT_CAPTURE_DEV, OPT_PLAYBACK_DEV, 502 504 OPT_CAPTURE_LAT, OPT_PLAYBACK_LAT, OPT_NO_TONES, OPT_JB_MAX_SIZE, 503 OPT_STDOUT_REFRESH, OPT_STDOUT_REFRESH_TEXT, OPT_IPV6, 505 OPT_STDOUT_REFRESH, OPT_STDOUT_REFRESH_TEXT, OPT_IPV6, OPT_QOS, 504 506 #ifdef _IONBF 505 507 OPT_STDOUT_NO_BUF, … … 617 619 { "ipv6", 0, 0, OPT_IPV6}, 618 620 #endif 621 { "set-qos", 0, 0, OPT_QOS}, 619 622 { "use-timer", 0, 0, OPT_TIMER}, 620 623 { "timer-se", 1, 0, OPT_TIMER_SE}, … … 1328 1331 break; 1329 1332 #endif 1330 1333 case OPT_QOS: 1334 cfg->enable_qos = PJ_TRUE; 1335 /* Set RTP traffic type to Voice */ 1336 cfg->rtp_cfg.qos_type = PJ_QOS_TYPE_VOICE; 1337 /* Directly apply DSCP value to SIP traffic. Say lets 1338 * set it to CS3 (DSCP 011000). Note that this will not 1339 * work on all platforms. 1340 */ 1341 cfg->udp_cfg.qos_params.flags = PJ_QOS_PARAM_HAS_DSCP; 1342 cfg->udp_cfg.qos_params.dscp_val = 0x18; 1343 break; 1331 1344 default: 1332 1345 PJ_LOG(1,(THIS_FILE, … … 1607 1620 if (config->ipv6) { 1608 1621 pj_strcat2(&cfg, "--ipv6\n"); 1622 } 1623 if (config->enable_qos) { 1624 pj_strcat2(&cfg, "--set-qos\n"); 1609 1625 } 1610 1626
Note: See TracChangeset
for help on using the changeset viewer.