Changeset 4000 for pjproject/trunk/pjsip-apps/src/samples/sipecho.c
- Timestamp:
- Mar 30, 2012 7:41:56 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/sipecho.c
r3754 r4000 419 419 pjsip_dialog *dlg; 420 420 pjsip_rdata_sdp_info *sdp_info; 421 pjmedia_sdp_session *answer ;422 pjsip_tx_data *tdata ;423 call_t *call ;421 pjmedia_sdp_session *answer = NULL; 422 pjsip_tx_data *tdata = NULL; 423 call_t *call = NULL; 424 424 unsigned i; 425 unsigned options = 0;426 425 pj_status_t status; 427 426 … … 490 489 491 490 /* Generate Contact URI */ 492 if (pj_gethostip(AF, &hostaddr) != PJ_SUCCESS) { 491 status = pj_gethostip(AF, &hostaddr); 492 if (status != PJ_SUCCESS) { 493 493 app_perror(THIS_FILE, "Unable to retrieve local host IP", status); 494 494 return PJ_TRUE; … … 561 561 pj_str_t local_uri; 562 562 pjsip_dialog *dlg; 563 pjmedia_sdp_session *local_sdp;564 563 pj_status_t status; 565 564 pjsip_tx_data *tdata; … … 613 612 (app.enable_msg_logging? "Disable" : "Enable")); 614 613 615 fgets(s, sizeof(s), stdin) != NULL; 614 if (fgets(s, sizeof(s), stdin) == NULL) 615 continue; 616 616 617 if (s[0]=='q') 617 618 break;
Note: See TracChangeset
for help on using the changeset viewer.