Changeset 376 for pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
- Timestamp:
- Apr 4, 2006 11:06:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r315 r376 932 932 PJ_DEF(pj_status_t) pjsip_dlg_send_request( pjsip_dialog *dlg, 933 933 pjsip_tx_data *tdata, 934 pjsip_transaction **p_tsx ) 934 int mod_data_id, 935 void *mod_data) 935 936 { 936 937 pjsip_transaction *tsx; … … 979 980 tsx->mod_data[dlg->ua->id] = dlg; 980 981 982 /* Copy optional caller's mod_data, if present */ 983 if (mod_data_id >= 0 && mod_data_id < PJSIP_MAX_MODULE) 984 tsx->mod_data[mod_data_id] = mod_data; 985 981 986 /* Increment transaction counter. */ 982 987 ++dlg->tsx_count; … … 989 994 } 990 995 991 if (p_tsx)992 *p_tsx = tsx;993 994 996 } else { 995 997 status = pjsip_endpt_send_request_stateless(dlg->endpt, tdata, … … 998 1000 goto on_error; 999 1001 1000 if (p_tsx)1001 *p_tsx = NULL;1002 1002 } 1003 1003 … … 1014 1014 pjsip_tx_data_dec_ref( tdata ); 1015 1015 1016 if (p_tsx)1017 *p_tsx = NULL;1018 1016 return status; 1019 1017 }
Note: See TracChangeset
for help on using the changeset viewer.