Changeset 6062
- Timestamp:
- Sep 5, 2019 5:03:12 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r6042 r6062 1248 1248 } 1249 1249 1250 /* Callback for send ACK, providing send callback will allow stack to try 1251 * next server upon failure. 1252 */ 1253 static void send_ack_callback( pjsip_send_state *send_state, 1254 pj_ssize_t sent, pj_bool_t *cont ) 1255 { 1256 if (sent > 0) 1257 return; 1258 1259 if (*cont) { 1260 PJ_PERROR(3,(THIS_FILE, (pj_status_t)-sent, 1261 "Temporary failure in sending %s, " 1262 "will try next server", 1263 pjsip_tx_data_get_info(send_state->tdata))); 1264 } else { 1265 PJ_PERROR(3,(THIS_FILE, (pj_status_t)-sent, 1266 "Failed to send %s!", 1267 pjsip_tx_data_get_info(send_state->tdata))); 1268 } 1269 } 1250 1270 1251 1271 /* … … 1339 1359 /* Send request */ 1340 1360 status = pjsip_endpt_send_request_stateless(dlg->endpt, tdata, 1341 NULL, NULL);1361 NULL, &send_ack_callback); 1342 1362 if (status != PJ_SUCCESS) 1343 1363 goto on_error;
Note: See TracChangeset
for help on using the changeset viewer.