- Timestamp:
- Mar 1, 2006 8:47:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/main.c
r254 r256 210 210 puts("| M Make multiple calls | s Subscribe presence | rr (Re-)register |"); 211 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|");212 puts("| h Hangup call (ha=all) | t ToGgle Online status | |"); 213 puts("| H Hold call | | |"); 214 214 puts("| v re-inVite (release hold) +--------------------------+-------------------+"); 215 215 puts("| ] Select next dialog | Conference Command | |"); 216 puts("| [ Select previous dialog | cl List ports | 217 puts("| x Xfer call | cc Connect port | 218 puts("| # Send DTMF string | cd Disconnect port | 216 puts("| [ Select previous dialog | cl List ports | d Dump status |"); 217 puts("| x Xfer call | cc Connect port | dd Dump detailed |"); 218 puts("| # Send DTMF string | cd Disconnect port | dc Dump config |"); 219 219 puts("+------------------------------+--------------------------+-------------------+"); 220 220 puts("| q QUIT |"); … … 405 405 printf("(You currently have %d calls)\n", pjsua.call_cnt); 406 406 407 if (!simple_input("Number of calls", menuin, sizeof(menuin))) 408 continue; 409 410 count = atoi(menuin); 411 if (count < 1) 412 continue; 413 407 414 ui_input_url("Make call", buf, sizeof(buf), &result); 408 415 if (result.nb_result != NO_NB) { … … 415 422 uri = result.uri_result; 416 423 } 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 424 425 425 for (i=0; i<atoi(menuin); ++i) { … … 485 485 continue; 486 486 487 } else if (menuin[1] == 'a') { 488 489 /* Hangup all calls */ 490 pjsua_call_hangup_all(); 491 487 492 } else { 493 494 /* Hangup current calls */ 488 495 pjsua_call_hangup(current_call, PJSIP_SC_DECLINE); 489 496 } … … 726 733 len, settings)); 727 734 } else { 728 pjsua_dump( );735 pjsua_dump(menuin[1]=='d'); 729 736 } 730 737 break;
Note: See TracChangeset
for help on using the changeset viewer.