Changeset 215 for pjproject/trunk/pjsip/src/pjsua/main.c
- Timestamp:
- Feb 22, 2006 12:06:39 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua/main.c
r212 r215 140 140 puts("| v re-inVite (release hold) | cl List ports | |"); 141 141 puts("| x Xfer call | cc Connect port | |"); 142 puts("| 142 puts("| # Send DTMF string | cd Disconnect port | |"); 143 143 puts("+------------------------------+--------------------------+-------------------+"); 144 144 puts("| q QUIT |"); … … 437 437 } else if (result.uri_result) { 438 438 pjsua_inv_xfer_call( inv_session, result.uri_result); 439 } 440 } 441 break; 442 443 case '#': 444 /* 445 * Send DTMF strings. 446 */ 447 if (inv_session == &pjsua.inv_list) { 448 449 PJ_LOG(3,(THIS_FILE, "No current call")); 450 451 } else if (inv_session->session == NULL) { 452 453 PJ_LOG(3,(THIS_FILE, "Media is not established yet!")); 454 455 } else { 456 pj_str_t digits; 457 pj_status_t status; 458 459 if (!simple_input("DTMF strings to send (0-9*#A-B)", buf, 460 sizeof(buf))) 461 break; 462 463 digits = pj_str(buf); 464 status = pjmedia_session_dial_dtmf(inv_session->session, 0, 465 &digits); 466 if (status != PJ_SUCCESS) { 467 pjsua_perror(THIS_FILE, "Unable to send DTMF", status); 468 } else { 469 puts("DTMF digits enqueued for transmission"); 439 470 } 440 471 }
Note: See TracChangeset
for help on using the changeset viewer.