- Timestamp:
- Oct 2, 2012 2:47:08 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r4269 r4273 360 360 unsigned options = 0; 361 361 pjsip_tx_data *tdata; 362 pj_bool_t cb_called = PJ_FALSE; 362 363 pj_status_t status = (info? info->status: PJ_SUCCESS); 363 364 … … 477 478 status = pjsip_inv_send_msg(inv, tdata); 478 479 if (status != PJ_SUCCESS) { 479 pjsua_perror(THIS_FILE, "Unable to send initial INVITE request", 480 status); 480 cb_called = PJ_TRUE; 481 481 482 482 /* Upon failure to send first request, the invite … … 495 495 496 496 on_error: 497 if (inv == NULL && call_id != -1 && pjsua_var.ua_cfg.cb.on_call_state) 497 if (inv == NULL && call_id != -1 && !cb_called && 498 pjsua_var.ua_cfg.cb.on_call_state) 499 { 498 500 (*pjsua_var.ua_cfg.cb.on_call_state)(call_id, NULL); 501 } 499 502 500 503 if (dlg) {
Note: See TracChangeset
for help on using the changeset viewer.