- Timestamp:
- Mar 2, 2006 9:14:16 PM (19 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
r212 r265 322 322 /** 323 323 * This composite function sends response message statefully to an incoming 324 * request message .325 * 326 * @param endptThe endpoint instance.324 * request message inside dialog. 325 * 326 * @param dlg The endpoint instance. 327 327 * @param rdata The incoming request message. 328 328 * @param st_code Status code of the response. … … 337 337 pjsip_rx_data *rdata, 338 338 int st_code, 339 const pj_str_t *st_text); 339 const pj_str_t *st_text, 340 const pjsip_hdr *hdr_list, 341 const pjsip_msg_body *body ); 340 342 341 343 /* -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r227 r265 1195 1195 pjsip_rx_data *rdata, 1196 1196 int st_code, 1197 const pj_str_t *st_text ) 1197 const pj_str_t *st_text, 1198 const pjsip_hdr *hdr_list, 1199 const pjsip_msg_body *body ) 1198 1200 { 1199 1201 pj_status_t status; … … 1214 1216 if (status != PJ_SUCCESS) 1215 1217 return status; 1218 1219 /* Add additional header, if any */ 1220 if (hdr_list) { 1221 const pjsip_hdr *hdr; 1222 1223 hdr = hdr_list->next; 1224 while (hdr != hdr_list) { 1225 pjsip_msg_add_hdr(tdata->msg, 1226 pjsip_hdr_clone(tdata->pool, hdr)); 1227 hdr = hdr->next; 1228 } 1229 } 1230 1231 /* Add the message body, if any. */ 1232 if (body) { 1233 tdata->msg->body = pjsip_msg_body_clone( tdata->pool, body); 1234 } 1216 1235 1217 1236 /* Send the response. */
Note: See TracChangeset
for help on using the changeset viewer.