Changeset 1127 for pjproject/trunk/pjsip/include/pjsip/sip_util.h
- Timestamp:
- Apr 2, 2007 11:44:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_util.h
r1079 r1127 473 473 474 474 /** 475 * @} 476 */ 477 478 /** 479 * @defgroup PJSIP_PROXY_CORE Core Proxy Layer 480 * @ingroup PJSIP 481 * @brief Core proxy operations 482 * @{ 483 */ 484 485 /** 475 486 * Create new request message to be forwarded upstream to new destination URI 476 487 * in uri. The new request is a full/deep clone of the request received in … … 479 490 * the Via header. If it is NULL, then a unique branch parameter will be used. 480 491 * 492 * Note: this function DOES NOT perform Route information preprocessing as 493 * described in RFC 3261 Section 16.4. Application must take care of 494 * removing/updating the Route headers according of the rules as 495 * described in that section. 496 * 481 497 * @param endpt The endpoint instance. 482 498 * @param rdata The incoming request message. 483 499 * @param uri The URI where the request will be forwarded to. 484 * @param branch Optional branch parameter. 500 * @param branch Optional branch parameter. Application may specify its 501 * own branch, for example if it wishes to perform loop 502 * detection. If the branch parameter is not specified, 503 * this function will generate its own by calling 504 * #pjsip_calculate_branch_id() function. 485 505 * @param options Optional option flags when duplicating the message. 486 506 * @param tdata The result. … … 488 508 * @return PJ_SUCCESS on success. 489 509 */ 490 PJ_DECL(pj_status_t) pjsip_endpt_create_request_fwd( pjsip_endpoint *endpt, 491 pjsip_rx_data *rdata, 492 const pjsip_uri *uri, 493 const pj_str_t *branch, 494 unsigned options, 495 pjsip_tx_data **tdata); 510 PJ_DECL(pj_status_t) pjsip_endpt_create_request_fwd(pjsip_endpoint *endpt, 511 pjsip_rx_data *rdata, 512 const pjsip_uri *uri, 513 const pj_str_t *branch, 514 unsigned options, 515 pjsip_tx_data **tdata); 516 517 496 518 497 519 /** … … 516 538 517 539 540 518 541 /** 519 542 * Create a globally unique branch parameter based on the information in 520 * the incoming request message. This function guarantees that subsequent 521 * retransmissions of the same request will generate the same branch id. 522 * This function can also be used in the loop detection process. 523 * If the same request arrives back in the proxy with the same URL, it will 524 * calculate into the same branch id. 543 * the incoming request message, for the purpose of creating a new request 544 * for forwarding. This is the default implementation used by 545 * #pjsip_endpt_create_request_fwd() function if the branch parameter is 546 * not specified. 547 * 548 * The default implementation here will just create an MD5 hash of the 549 * top-most Via. 550 * 525 551 * Note that the returned string was allocated from rdata's pool. 526 552 *
Note: See TracChangeset
for help on using the changeset viewer.