Changeset 753 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Oct 8, 2006 12:39:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r742 r753 127 127 puts (" --no-tcp Disable TCP transport."); 128 128 puts (" --no-udp Disable UDP transport."); 129 puts (" --nameserver=NS Add the specified nameserver to enable SRV resolution"); 130 puts (" This option can be specified multiple times."); 129 131 puts (" --outbound=url Set the URL of global outbound proxy server"); 130 132 puts (" May be specified multiple times"); … … 277 279 OPT_REGISTRAR, OPT_REG_TIMEOUT, OPT_PUBLISH, OPT_ID, OPT_CONTACT, 278 280 OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 279 OPT_ USE_STUN1, OPT_USE_STUN2,281 OPT_NAMESERVER, OPT_USE_STUN1, OPT_USE_STUN2, 280 282 OPT_ADD_BUDDY, OPT_OFFER_X_MS_MSG, OPT_NO_PRESENCE, 281 283 OPT_AUTO_ANSWER, OPT_AUTO_HANGUP, OPT_AUTO_PLAY, OPT_AUTO_LOOP, … … 310 312 { "username", 1, 0, OPT_USERNAME}, 311 313 { "password", 1, 0, OPT_PASSWORD}, 314 { "nameserver", 1, 0, OPT_NAMESERVER}, 312 315 { "use-stun1", 1, 0, OPT_USE_STUN1}, 313 316 { "use-stun2", 1, 0, OPT_USE_STUN2}, … … 550 553 break; 551 554 555 case OPT_NAMESERVER: /* nameserver */ 556 cfg->cfg.nameserver[cfg->cfg.nameserver_count++] = pj_str(pj_optarg); 557 if (cfg->cfg.nameserver_count > PJ_ARRAY_SIZE(cfg->cfg.nameserver)) { 558 PJ_LOG(1,(THIS_FILE, "Error: too many nameservers")); 559 return PJ_ETOOMANY; 560 } 561 break; 562 552 563 case OPT_USE_STUN1: /* STUN server 1 */ 553 564 p = pj_ansi_strchr(pj_optarg, ':');
Note: See TracChangeset
for help on using the changeset viewer.