Changeset 107 for pjproject/trunk/pjsip/include/pjsip/sip_util.h
- Timestamp:
- Jan 5, 2006 11:35:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_util.h
r106 r107 329 329 330 330 /** 331 * This composite function sends response message statelessly to an incoming 332 * request message. Internally it calls #pjsip_endpt_create_response() and 333 * #pjsip_endpt_send_response(). 334 * 335 * @param endpt The endpoint instance. 336 * @param rdata The incoming request message. 337 * @param st_code Status code of the response. 338 * @param st_text Optional status text of the response. 339 * @param hdr_list Optional header list to be added to the response. 340 * @param body Optional message body to be added to the response. 341 * 342 * @return PJ_SUCCESS if response message has successfully been 343 * created. 344 */ 345 PJ_DECL(pj_status_t) pjsip_endpt_respond_stateless(pjsip_endpoint *endpt, 346 pjsip_rx_data *rdata, 347 int st_code, 348 const pj_str_t *st_text, 349 const pjsip_hdr *hdr_list, 350 const pjsip_msg_body *body); 351 352 353 /** 331 354 * Send outgoing request and initiate UAC transaction for the request. 332 355 * This is an auxiliary function to be used by application to send arbitrary … … 353 376 void (*cb)(void*,pjsip_event*)); 354 377 378 /** 379 * Create new request message to be forwarded upstream to new destination URI 380 * in uri. The new request is a full/deep clone of the request received in 381 * rdata, unless if other copy mechanism is specified in the options. 382 * The branch parameter, if not NULL, will be used as the branch-param in 383 * the Via header. If it is NULL, then a unique branch parameter will be used. 384 * 385 * @param endpt The endpoint instance. 386 * @param rdata The incoming request message. 387 * @param uri The URI where the request will be forwarded to. 388 * @param branch Optional branch parameter. 389 * @param options Optional option flags when duplicating the message. 390 * @param tdata The result. 391 * 392 * @return PJ_SUCCESS on success. 393 */ 394 PJ_DECL(pj_status_t) pjsip_endpt_create_request_fwd( pjsip_endpoint *endpt, 395 pjsip_rx_data *rdata, 396 const pjsip_uri *uri, 397 const pj_str_t *branch, 398 unsigned options, 399 pjsip_tx_data **tdata); 400 401 /** 402 * Create new response message to be forwarded downstream by the proxy from 403 * the response message found in rdata. Note that this function practically 404 * will clone the response as is, i.e. without checking the validity of the 405 * response or removing top most Via header. This function will perform 406 * full/deep clone of the response, unless other copy mechanism is used in 407 * the options. 408 * 409 * @param endpt The endpoint instance. 410 * @param rdata The incoming response message. 411 * @param options Optional option flags when duplicate the message. 412 * @param tdata The result 413 * 414 * @return PJ_SUCCESS on success. 415 */ 416 PJ_DECL(pj_status_t) pjsip_endpt_create_response_fwd( pjsip_endpoint *endpt, 417 pjsip_rx_data *rdata, 418 unsigned options, 419 pjsip_tx_data **tdata); 420 421 422 /** 423 * Create a globally unique branch parameter based on the information in 424 * the incoming request message. This function guarantees that subsequent 425 * retransmissions of the same request will generate the same branch id. 426 * This function can also be used in the loop detection process. 427 * If the same request arrives back in the proxy with the same URL, it will 428 * calculate into the same branch id. 429 * Note that the returned string was allocated from rdata's pool. 430 * 431 * @param rdata The incoming request message. 432 * 433 * @return Unique branch-ID string. 434 */ 435 PJ_DECL(pj_str_t) pjsip_calculate_branch_id( pjsip_rx_data *rdata ); 436 355 437 356 438 /**
Note: See TracChangeset
for help on using the changeset viewer.