Changeset 1102 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Mar 24, 2007 5:37:25 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r1098 r1102 326 326 OPT_REGISTRAR, OPT_REG_TIMEOUT, OPT_PUBLISH, OPT_ID, OPT_CONTACT, 327 327 OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 328 OPT_NAMESERVER, OPT_STUN_ SRV,328 OPT_NAMESERVER, OPT_STUN_DOMAIN, OPT_STUN_SRV, 329 329 OPT_ADD_BUDDY, OPT_OFFER_X_MS_MSG, OPT_NO_PRESENCE, 330 330 OPT_AUTO_ANSWER, OPT_AUTO_HANGUP, OPT_AUTO_PLAY, OPT_AUTO_LOOP, … … 367 367 { "password", 1, 0, OPT_PASSWORD}, 368 368 { "nameserver", 1, 0, OPT_NAMESERVER}, 369 { "stun-domain",1, 0, OPT_STUN_DOMAIN}, 369 370 { "stun-srv", 1, 0, OPT_STUN_SRV}, 370 371 { "add-buddy", 1, 0, OPT_ADD_BUDDY}, … … 632 633 break; 633 634 635 case OPT_STUN_DOMAIN: /* STUN domain */ 636 cfg->cfg.stun_domain = pj_str(pj_optarg); 637 break; 638 634 639 case OPT_STUN_SRV: /* STUN server */ 635 cfg->cfg.stun_ srv= pj_str(pj_optarg);640 cfg->cfg.stun_host = pj_str(pj_optarg); 636 641 break; 637 642 … … 1084 1089 1085 1090 /* STUN */ 1086 if (config->cfg.stun_srv.slen) { 1091 if (config->cfg.stun_domain.slen) { 1092 pj_ansi_sprintf(line, "--stun-domain %.*s\n", 1093 (int)config->cfg.stun_domain.slen, 1094 config->cfg.stun_domain.ptr); 1095 pj_strcat2(&cfg, line); 1096 } 1097 if (config->cfg.stun_host.slen) { 1087 1098 pj_ansi_sprintf(line, "--stun-srv %.*s\n", 1088 (int)config->cfg.stun_ srv.slen,1089 config->cfg.stun_ srv.ptr);1099 (int)config->cfg.stun_host.slen, 1100 config->cfg.stun_host.ptr); 1090 1101 pj_strcat2(&cfg, line); 1091 1102 }
Note: See TracChangeset
for help on using the changeset viewer.