- Timestamp:
- Jul 1, 2010 10:25:47 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/cli/pjsip-apps/src/samples/clidemo.c
r3231 r3232 30 30 #define THIS_FILE "clidemo.c" 31 31 32 /* Set this to 1 if you want to let the system assign a port 33 * for the CLI telnet daemon. 34 * Default: 1 35 */ 36 #define USE_RANDOM_PORT 1 37 32 38 struct cmd_xml_t { 33 39 char * xml; … … 128 134 pjlib_util_init(); 129 135 130 pj_log_set_log_func(&log_writer);131 132 136 /* 133 137 * Create CLI app. … … 158 162 pj_cli_telnet_cfg_default(&tcfg); 159 163 // tcfg.passwd = pj_str("pjsip"); 164 #if USE_RANDOM_PORT 165 tcfg.port = 0; 166 #endif 160 167 status = pj_cli_telnet_create(cli, &tcfg, NULL); 161 168 if (status != PJ_SUCCESS) … … 196 203 if (status != PJ_SUCCESS) 197 204 return status; 205 206 pj_log_set_log_func(&log_writer); 198 207 199 208 /*
Note: See TracChangeset
for help on using the changeset viewer.