- Timestamp:
- Mar 1, 2006 7:31:18 PM (19 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 14 added
- 2 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/Makefile
r157 r254 2 2 include build/host-$(HOST_NAME).mak 3 3 4 DIRS = pjlib pjlib-util pjmedia pjsip 4 DIRS = pjlib pjlib-util pjmedia pjsip pjsip-apps 5 5 6 6 ifdef MINSIZE … … 22 22 pjlib-util/lib/libpjlib-util-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 23 23 pjmedia/lib/libpjmedia-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 24 pjmedia/lib/libpjmedia-codec-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 24 25 pjsip/lib/libpjsip-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 25 pjsip/lib/libpjsip-ua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a 26 BINS = pjsip/bin/pjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE) 26 pjsip/lib/libpjsip-ua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 27 pjsip/lib/libpjsip-simple-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a \ 28 pjsip/lib/libpjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME).a 29 BINS = pjsip-apps/bin/pjsua-$(MACHINE_NAME)-$(OS_NAME)-$(CC_NAME)$(HOST_EXE) 27 30 28 31 size: -
pjproject/trunk/pjsip-apps/build/pjsua.dsp
r249 r254 43 43 # PROP Target_Dir "" 44 44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c 45 # ADD CPP /nologo /MD /W4 /GX /Zi /O2 /I "../ include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../../pjmedia/include" /D "NDEBUG" /D PJ_WIN32=1 /D PJ_M_I386=1 /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /c45 # ADD CPP /nologo /MD /W4 /GX /Zi /O2 /I "../../pjsip/include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../../pjmedia/include" /D "NDEBUG" /D PJ_WIN32=1 /D PJ_M_I386=1 /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /c 46 46 # SUBTRACT CPP /YX 47 47 # ADD BASE RSC /l 0x409 /d "NDEBUG" … … 69 69 # PROP Target_Dir "" 70 70 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c 71 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../ include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../../pjmedia/include" /D "_DEBUG" /D PJ_WIN32=1 /D PJ_M_I386=1 /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c71 # ADD CPP /nologo /MTd /W4 /Gm /GX /ZI /Od /I "../../pjsip/include" /I "../../pjlib/include" /I "../../pjlib-util/include" /I "../../pjmedia/include" /D "_DEBUG" /D PJ_WIN32=1 /D PJ_M_I386=1 /D "WIN32" /D "_CONSOLE" /D "_MBCS" /FR /FD /GZ /c 72 72 # SUBTRACT CPP /YX 73 73 # ADD BASE RSC /l 0x409 /d "_DEBUG" -
pjproject/trunk/pjsip-apps/src/pjsua/main.c
r238 r254 18 18 */ 19 19 #include <pjsua-lib/pjsua.h> 20 #include <stdlib.h> 20 #include <stdlib.h> /* atoi */ 21 21 22 22 … … 208 208 puts("| | | |"); 209 209 puts("| m Make new call | i Send IM | o Send OPTIONS |"); 210 puts("| a Answer call| s Subscribe presence | rr (Re-)register |");211 puts("| h Hangupcall | u Unsubscribe presence | ru Unregister |");212 puts("| ] Select next dialog| t ToGgle Online status | d Dump status |");213 puts("| [ Select previous dialog| | dc Dump config |");214 puts("| 215 puts("| H Hold call| Conference Command | |");216 puts("| v re-inVite (release hold)| cl List ports | |");210 puts("| M Make multiple calls | s Subscribe presence | rr (Re-)register |"); 211 puts("| a Answer call | u Unsubscribe presence | ru Unregister |"); 212 puts("| h Hangup call | t ToGgle Online status | d Dump status |"); 213 puts("| H Hold call | | dc Dump config |"); 214 puts("| v re-inVite (release hold) +--------------------------+-------------------+"); 215 puts("| ] Select next dialog | Conference Command | |"); 216 puts("| [ Select previous dialog | cl List ports | |"); 217 217 puts("| x Xfer call | cc Connect port | |"); 218 218 puts("| # Send DTMF string | cd Disconnect port | |"); … … 220 220 puts("| q QUIT |"); 221 221 puts("+=============================================================================+"); 222 printf(">>> ");223 224 225 fflush(stdout);226 222 } 227 223 … … 373 369 char menuin[10]; 374 370 char buf[128]; 371 int i, count; 372 char *uri; 375 373 struct input_result result; 376 374 377 //keystroke_help();375 keystroke_help(); 378 376 379 377 for (;;) { 380 378 381 keystroke_help(); 379 printf(">>> "); 380 fflush(stdout); 381 382 382 fgets(menuin, sizeof(menuin), stdin); 383 383 … … 401 401 break; 402 402 403 case 'M': 404 /* Make multiple calls! : */ 405 printf("(You currently have %d calls)\n", pjsua.call_cnt); 406 407 ui_input_url("Make call", buf, sizeof(buf), &result); 408 if (result.nb_result != NO_NB) { 409 if (result.nb_result == -1) { 410 puts("You can't do that with make call!"); 411 continue; 412 } 413 uri = pjsua.buddies[result.nb_result].uri.ptr; 414 } else { 415 uri = result.uri_result; 416 } 417 418 if (!simple_input("Number of calls", menuin, sizeof(menuin))) 419 continue; 420 421 count = atoi(menuin); 422 if (count < 1) 423 continue; 424 425 for (i=0; i<atoi(menuin); ++i) { 426 pj_status_t status; 427 428 status = pjsua_make_call(current_acc, uri, NULL); 429 if (status != PJ_SUCCESS) 430 break; 431 } 432 break; 403 433 404 434 case 'a': … … 702 732 case 'q': 703 733 goto on_exit; 734 735 default: 736 keystroke_help(); 737 break; 704 738 } 705 739 }
Note: See TracChangeset
for help on using the changeset viewer.