Changeset 5456
- Timestamp:
- Oct 7, 2016 8:41:55 AM (8 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
r5241 r5456 558 558 559 559 /** 560 * Get the dialog instance for the outgoing tdata. Returns NULL if the message 561 * wasn't sent from a dialog. 562 * 563 * @param tdata Outgoing message buffer. 564 * 565 * @return The dialog instance that "owns" the message. 566 */ 567 PJ_DECL(pjsip_dialog*) pjsip_tdata_get_dlg( pjsip_tx_data *tdata ); 568 569 /** 560 570 * Get the associated dialog for the specified transaction, if any. 561 571 * -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r5401 r5456 1125 1125 return status; 1126 1126 1127 /* Put this dialog in tdata's mod_data */ 1128 tdata->mod_data[dlg->ua->id] = dlg; 1129 1127 1130 /* Just copy dialog route-set to Route header. 1128 1131 * The transaction will do the processing as specified in Section 12.2.1 … … 1224 1227 /* Lock and increment session */ 1225 1228 pjsip_dlg_inc_lock(dlg); 1229 1230 /* Put this dialog in tdata's mod_data */ 1231 tdata->mod_data[dlg->ua->id] = dlg; 1226 1232 1227 1233 /* If via_addr is set, use this address for the Via header. */ … … 1406 1412 /* Lock the dialog. */ 1407 1413 pjsip_dlg_inc_lock(dlg); 1414 1415 /* Put this dialog in tdata's mod_data */ 1416 tdata->mod_data[dlg->ua->id] = dlg; 1408 1417 1409 1418 dlg_beautify_response(dlg, PJ_FALSE, st_code, tdata); -
pjproject/trunk/pjsip/src/pjsip/sip_ua_layer.c
r5243 r5456 413 413 } 414 414 415 PJ_DEF(pjsip_dialog*) pjsip_tdata_get_dlg( pjsip_tx_data *tdata ) 416 { 417 return (pjsip_dialog*) tdata->mod_data[mod_ua.mod.id]; 418 } 419 415 420 PJ_DEF(pjsip_dialog*) pjsip_tsx_get_dlg( pjsip_transaction *tsx ) 416 421 {
Note: See TracChangeset
for help on using the changeset viewer.