Changeset 2852 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Aug 4, 2009 2:36:17 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r2824 r2852 181 181 puts (" --id=url Set the URL of local ID (used in From header)"); 182 182 puts (" --contact=url Optionally override the Contact information"); 183 puts (" --contact-params=S Append the specified parameters S in Contact URI"); 183 puts (" --contact-params=S Append the specified parameters S in Contact header"); 184 puts (" --contact-uri-params=S Append the specified parameters S in Contact URI"); 184 185 puts (" --proxy=url Optional URL of proxy server to visit"); 185 186 puts (" May be specified multiple times"); … … 472 473 OPT_LOCAL_PORT, OPT_IP_ADDR, OPT_PROXY, OPT_OUTBOUND_PROXY, 473 474 OPT_REGISTRAR, OPT_REG_TIMEOUT, OPT_PUBLISH, OPT_ID, OPT_CONTACT, 474 OPT_BOUND_ADDR, OPT_CONTACT_PARAMS, 475 OPT_BOUND_ADDR, OPT_CONTACT_PARAMS, OPT_CONTACT_URI_PARAMS, 475 476 OPT_100REL, OPT_USE_IMS, OPT_REALM, OPT_USERNAME, OPT_PASSWORD, 476 477 OPT_NAMESERVER, OPT_STUN_DOMAIN, OPT_STUN_SRV, … … 530 531 { "contact", 1, 0, OPT_CONTACT}, 531 532 { "contact-params",1,0, OPT_CONTACT_PARAMS}, 533 { "contact-uri-params",1,0, OPT_CONTACT_URI_PARAMS}, 532 534 { "auto-update-nat", 1, 0, OPT_AUTO_UPDATE_NAT}, 533 535 { "use-compact-form", 0, 0, OPT_USE_COMPACT_FORM}, … … 852 854 break; 853 855 856 case OPT_CONTACT_URI_PARAMS: 857 cur_acc->contact_uri_params = pj_str(pj_optarg); 858 break; 859 854 860 case OPT_AUTO_UPDATE_NAT: /* OPT_AUTO_UPDATE_NAT */ 855 861 cur_acc->allow_contact_rewrite = pj_strtoul(pj_cstr(&tmp, pj_optarg)); … … 1406 1412 } 1407 1413 1408 /* Contact parameters */1414 /* Contact header parameters */ 1409 1415 if (acc_cfg->contact_params.slen) { 1410 1416 pj_ansi_sprintf(line, "--contact-params %.*s\n", 1411 1417 (int)acc_cfg->contact_params.slen, 1412 1418 acc_cfg->contact_params.ptr); 1419 pj_strcat2(result, line); 1420 } 1421 1422 /* Contact URI parameters */ 1423 if (acc_cfg->contact_uri_params.slen) { 1424 pj_ansi_sprintf(line, "--contact-uri-params %.*s\n", 1425 (int)acc_cfg->contact_uri_params.slen, 1426 acc_cfg->contact_uri_params.ptr); 1413 1427 pj_strcat2(result, line); 1414 1428 }
Note: See TracChangeset
for help on using the changeset viewer.